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.



3724
3725
3726
# File 'lib/idl/ast.rb', line 3724

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



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

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



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

def execute_unknown(symtab); end

#to_idlObject



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

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:



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

def type_check(symtab); end