Class: Idl::CommentAst
Overview
represents a comment
Instance Method Summary collapse
-
#content ⇒ String
The comment text, with the leading hash and any leading space removed.
-
#initialize(input, interval) ⇒ CommentAst
constructor
A new instance of CommentAst.
-
#type_check(symtab) ⇒ void
type check this node and all children.
Constructor Details
#initialize(input, interval) ⇒ CommentAst
Returns a new instance of CommentAst.
4130 4131 4132 |
# File 'lib/idl/ast.rb', line 4130 def initialize(input, interval) super(input, interval, EMPTY_ARRAY) end |
Instance Method Details
#content ⇒ String
Returns The comment text, with the leading hash and any leading space removed.
4140 |
# File 'lib/idl/ast.rb', line 4140 def content = text_value[1..].strip |
#type_check(symtab) ⇒ void
This method returns an undefined value.
type check this node and all children
Calls to #type and/or #value may depend on type_check being called first with the same symtab. If not, those functions may raise an AstNode::InternalError
4135 |
# File 'lib/idl/ast.rb', line 4135 def type_check(symtab); end |