diff --git a/lib/repl_type_completor/type_analyzer.rb b/lib/repl_type_completor/type_analyzer.rb index daad501..c14357d 100644 --- a/lib/repl_type_completor/type_analyzer.rb +++ b/lib/repl_type_completor/type_analyzer.rb @@ -821,6 +821,10 @@ def evaluate_alias_global_variable_node(_node, _scope) = Types::NIL def evaluate_undef_node(_node, _scope) = Types::NIL def evaluate_missing_node(_node, _scope) = Types::NIL + def evaluate_error_recovery_node(node, scope) + node.unexpected ? evaluate(node.unexpected, scope) : Types::NIL + end + def evaluate_call_node_arguments(call_node, scope) # call_node.arguments is Prism::ArgumentsNode arguments = call_node.arguments&.arguments&.dup || []