Class: Duby::AST::ErrorNode

Inherits:
Node show all
Defined in:
lib/duby/ast.rb

Instance Attribute Summary

Attributes inherited from Node

#children, #inferred_type, #newline, #parent, #position

Instance Method Summary collapse

Methods inherited from Node

#[], #each, #expr?, #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.



91
92
93
94
95
96
# File 'lib/duby/ast.rb', line 91

def initialize(parent, error)
  super(parent, error.position)
  @error = error
  @inferred_type = TypeReference::ErrorType
  @resolved = true
end

Instance Method Details

#infer(typer) ⇒ Object



98
99
# File 'lib/duby/ast.rb', line 98

def infer(typer)
end