Module: Idl::Declaration

Overview

interface for any AstNode that introduces a new symbol into scope

Instance Method Summary collapse

Instance Method Details

#add_symbol(symtab) ⇒ Object

Add symbol(s) at the outermost scope of the symbol table

Parameters:

  • symtab (SymbolTable)

    Symbol table at the scope that the symbol(s) will be inserted

Raises:

  • (NotImplementedError)


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

def add_symbol(symtab) = raise NotImplementedError, "#{self.class.name} must implment add_symbol"