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.
4153 4154 4155 |
# File 'lib/idl/ast.rb', line 4153 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.
4163 |
# File 'lib/idl/ast.rb', line 4163 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
4158 |
# File 'lib/idl/ast.rb', line 4158 def type_check(symtab); end |