Skip to content

Commit b6db73e

Browse files
committed
clean up
1 parent f078ef4 commit b6db73e

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

ndc_lib/src/ast/parser.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,13 +1112,10 @@ impl Parser {
11121112
let identifier = match self.peek_current_token() {
11131113
Some(Token::LeftParentheses) => None,
11141114
Some(Token::Identifier(_)) => {
1115-
// TODO: clean this up
1116-
let ExpressionLocation {
1115+
let Ok(ExpressionLocation {
11171116
expression: Expression::Identifier { name, .. },
11181117
..
1119-
} = self
1120-
.require_identifier()
1121-
.expect("this is guaranteed to produce an identifier by previous match")
1118+
}) = self.require_identifier()
11221119
else {
11231120
unreachable!("guaranteed to to produce identifier")
11241121
};

ndc_lib/src/interpreter/evaluate/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ fn execute_for_iterations(
954954

955955
if tail.is_empty() {
956956
match execute_body(body, &mut scope, out_values) {
957-
Err(FunctionCarrier::Continue) => {},
957+
Err(FunctionCarrier::Continue) => {}
958958
Err(error) => return Err(error),
959959
Ok(_value) => {}
960960
}

ndc_lib/src/interpreter/resolve.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub fn resolve_pass(
2929
resolved,
3030
} => {
3131
if ident == "None" {
32+
// THIS IS VERY UNHINGED
3233
return Ok(());
3334
}
3435
let binding = lexical_data.get_binding_any(ident).ok_or_else(|| {

0 commit comments

Comments
 (0)