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.



4130
4131
4132
# File 'lib/idl/ast.rb', line 4130

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



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

Parameters:

Raises:



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

def type_check(symtab); end