Class: Idl::NoopAst

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

Instance Method Summary collapse

Constructor Details

#initializeNoopAst

Returns a new instance of NoopAst.



3701
3702
3703
# File 'lib/idl/ast.rb', line 3701

def initialize
  super("", 0...0, EMPTY_ARRAY)
end

Instance Method Details

#execute(symtab) ⇒ void

This method returns an undefined value.

“execute” the statement by updating the variables in the symbol table

Parameters:

  • symtab (SymbolTable)

    The symbol table for the context

Raises:

  • ValueError if some part of the statement cannot be executed at compile time



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

def execute(symtab); end

#execute_unknown(symtab) ⇒ void

This method returns an undefined value.

“execute” the statement, forcing any variable assignments to an unknown state This is used down unknown conditional paths.

Parameters:

  • symtab (SymbolTable)

    The symbol table for the context

Raises:

  • ValueError if some part of the statement cannot be executed at compile time



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

def execute_unknown(symtab); end

#to_idlObject



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

def to_idl = ""

#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:



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

def type_check(symtab); end