C# 클래스 Rhino.Ast.Symbol

Represents a symbol-table entry.
Represents a symbol-table entry.
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

GetContainingTable() 공개 메소드

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

GetDeclType() 공개 메소드

Returns symbol declaration type
public GetDeclType ( ) : int
리턴 int

GetDeclTypeName() 공개 메소드

public GetDeclTypeName ( ) : string
리턴 string

GetIndex() 공개 메소드

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

GetName() 공개 메소드

Returns symbol name
public GetName ( ) : string
리턴 string

GetNode() 공개 메소드

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

SetContainingTable() 공개 메소드

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

SetDeclType() 공개 메소드

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

SetIndex() 공개 메소드

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

SetName() 공개 메소드

Sets symbol name
public SetName ( string name ) : void
name string
리턴 void

SetNode() 공개 메소드

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

Symbol() 공개 메소드

public Symbol ( ) : System
리턴 System

Symbol() 공개 메소드

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
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string