Class: Idl::CommentAst

Inherits:
AstNode show all
Defined in:
lib/idl/ast.rb

Overview

represents a comment

Instance Method Summary collapse

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

#contentString

Returns The comment text, with the leading hash and any leading space removed.

Examples:

# This is a comment     #=> "This is a comment"

Returns:

  • (String)

    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

Parameters:

Raises:



4158
# File 'lib/idl/ast.rb', line 4158

def type_check(symtab); end