Class: Duby::AST::JRubyAst::GlobalVarNode
- Inherits:
-
Object
- Object
- Duby::AST::JRubyAst::GlobalVarNode
- Defined in:
- lib/duby/transform.rb
Instance Method Summary collapse
Instance Method Details
#annotation(transformer, parent) ⇒ Object
395 396 397 398 |
# File 'lib/duby/transform.rb', line 395 def annotation(transformer, parent) classname = name[1..-1] annotation = Annotation.new(parent, position, AST.type(classname)) end |
#transform(transformer, parent) ⇒ Object
391 392 393 |
# File 'lib/duby/transform.rb', line 391 def transform(transformer, parent) transformer.add_annotation(annotation(transformer, parent)) end |