C# Class Rhino.Ast.Symbol

Represents a symbol-table entry.
Represents a symbol-table entry.
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
GetContainingTable ( ) : Scope

Returns the Scope in which this symbol is entered

GetDeclType ( ) : int

Returns symbol declaration type

GetDeclTypeName ( ) : string
GetIndex ( ) : int

Returns symbol's index in its scope

GetName ( ) : string

Returns symbol name

GetNode ( ) : Node

Returns the node associated with this identifier

SetContainingTable ( Scope containingTable ) : void

Sets this symbol's Scope

SetDeclType ( int declType ) : void

Sets symbol declaration type

SetIndex ( int index ) : void

Sets symbol's index in its scope

SetName ( string name ) : void

Sets symbol name

SetNode ( Node node ) : void

Sets the node associated with this identifier

Symbol ( ) : System
Symbol ( int declType, string name ) : System

Constructs a new Symbol with a specific name and declaration type

ToString ( ) : string

Method Details

GetContainingTable() public method

Returns the Scope in which this symbol is entered
public GetContainingTable ( ) : Scope
return Scope

GetDeclType() public method

Returns symbol declaration type
public GetDeclType ( ) : int
return int

GetDeclTypeName() public method

public GetDeclTypeName ( ) : string
return string

GetIndex() public method

Returns symbol's index in its scope
public GetIndex ( ) : int
return int

GetName() public method

Returns symbol name
public GetName ( ) : string
return string

GetNode() public method

Returns the node associated with this identifier
public GetNode ( ) : Node
return Node

SetContainingTable() public method

Sets this symbol's Scope
public SetContainingTable ( Scope containingTable ) : void
containingTable Scope
return void

SetDeclType() public method

Sets symbol declaration type
public SetDeclType ( int declType ) : void
declType int
return void

SetIndex() public method

Sets symbol's index in its scope
public SetIndex ( int index ) : void
index int
return void

SetName() public method

Sets symbol name
public SetName ( string name ) : void
name string
return void

SetNode() public method

Sets the node associated with this identifier
public SetNode ( Node node ) : void
node Node
return void

Symbol() public method

public Symbol ( ) : System
return System

Symbol() public method

Constructs a new Symbol with a specific name and declaration type
public Symbol ( int declType, string name ) : System
declType int /// /// Rhino.Token.FUNCTION /// , /// Rhino.Token.LP /// (for params), /// Rhino.Token.VAR /// , /// Rhino.Token.LET /// or /// Rhino.Token.CONST ///
name string
return System

ToString() public method

public ToString ( ) : string
return string