Class: Duby::AST::ErrorNode
Instance Attribute Summary
Attributes inherited from Node
#children, #inferred_type, #newline, #parent, #position
Instance Method Summary collapse
- #infer(typer) ⇒ Object
-
#initialize(parent, error) ⇒ ErrorNode
constructor
A new instance of ErrorNode.
Methods inherited from Node
#<<, ===, #[], #_set_parent, child, child_name, #each, #empty?, #expr?, #initialize_copy, #insert, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s
Constructor Details
#initialize(parent, error) ⇒ ErrorNode
Returns a new instance of ErrorNode.
168 169 170 171 172 173 |
# File 'lib/duby/ast.rb', line 168 def initialize(parent, error) super(parent, error.position) @error = error @inferred_type = TypeReference::ErrorType @resolved = true end |
Instance Method Details
#infer(typer) ⇒ Object
175 176 |
# File 'lib/duby/ast.rb', line 175 def infer(typer) end |