Class: Delorean::NodeAsValue
- Defined in:
- lib/delorean/nodes.rb
Instance Method Summary collapse
Instance Method Details
#check(context) ⇒ Object
145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/delorean/nodes.rb', line 145 def check(context, *) node_name = c.text_value mname = mod.m.text_value if defined?(mod.m) begin context.parse_check_defined_mod_node(node_name, mname) rescue UndefinedError, ParseError # Node is a non-Delorean ruby class context.parse_class(text_value) end [] end |
#rewrite(context) ⇒ Object
157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'lib/delorean/nodes.rb', line 157 def rewrite(context) node_name = c.text_value mname = mod.m.text_value if defined?(mod.m) begin context.parse_check_defined_mod_node(node_name, mname) context.super_name(node_name, mname) rescue UndefinedError, ParseError # FIXME: wrap the class name so Call will be able to tell it # apart from a regular value. ClassText.new(text_value) end end |