File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ;
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ( || {
You can’t perform that action at this time.
0 commit comments