Class: Loxxy::Ast::LoxThisExpr
- Defined in:
- lib/loxxy/ast/lox_this_expr.rb
Overview
A node in a parse tree that represents the occurrence of 'this' keyword.
Instance Attribute Summary
Attributes inherited from LoxNode
Instance Method Summary collapse
-
#accept(aVisitor) ⇒ Object
Part of the 'visitee' role in Visitor design pattern.
-
#name ⇒ String
Duck-typing: behaves like a LoxVarExpr.
Methods inherited from LoxNode
Constructor Details
This class inherits a constructor from Loxxy::Ast::LoxNode
Instance Method Details
#accept(aVisitor) ⇒ Object
Part of the 'visitee' role in Visitor design pattern.
17 18 19 |
# File 'lib/loxxy/ast/lox_this_expr.rb', line 17 def accept(aVisitor) aVisitor.visit_this_expr(self) end |
#name ⇒ String
Duck-typing: behaves like a LoxVarExpr
11 12 13 |
# File 'lib/loxxy/ast/lox_this_expr.rb', line 11 def name 'this' end |