Class: Mirah::AST::ErrorNode
Instance Attribute Summary
Attributes inherited from Node
#children, #inferred_type, #newline, #parent, #position
Instance Method Summary collapse
- #infer(typer, expression) ⇒ Object
-
#initialize(parent, error) ⇒ ErrorNode
constructor
A new instance of ErrorNode.
Methods inherited from Node
#<<, ===, #[], #[]=, #_dump, _load, #_set_parent, child, child_name, #child_nodes, #each, #empty?, #expr?, #inferred_type!, #initialize_copy, #insert, #inspect, #inspect_children, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #string_value, #temp, #to_s, #top_level?, #validate_child, #validate_children
Constructor Details
#initialize(parent, error) ⇒ ErrorNode
Returns a new instance of ErrorNode.
293 294 295 296 297 298 |
# File 'lib/mirah/ast.rb', line 293 def initialize(parent, error) super(parent, error.position) @error = error @inferred_type = TypeReference::ErrorType @resolved = true end |
Instance Method Details
#infer(typer, expression) ⇒ Object
300 301 |
# File 'lib/mirah/ast.rb', line 300 def infer(typer, expression) end |