C# 클래스 Symbols.SymbolTable.Scope

파일 보기 프로젝트 열기: YourLocalFax/OLD-Score

공개 프로퍼티들

프로퍼티 타입 설명
name string
parent Scope

공개 메소드들

메소드 설명
AddChild ( Scope scope ) : void
GetScope ( int index ) : Scope
InsertFn ( string fnName, Modifiers mods, FnTyRef ty ) : void
InsertType ( string typeName, Modifiers mods, TyRef ty ) : void
InsertVar ( string varName, TyRef ty, bool isMut ) : void
Lookup ( string name ) : Symbol

Attempts to find a symbol with the given name. Returns the symbol if it was found, null otherwise.

Scope ( string name, Scope parent = null ) : System.Collections.Generic
ToString ( ) : string
WriteTo ( StringBuilder builder, int tabs ) : void

비공개 메소드들

메소드 설명
GetSymbol ( string name, Symbol &symbol ) : bool

메소드 상세

AddChild() 공개 메소드

public AddChild ( Scope scope ) : void
scope Scope
리턴 void

GetScope() 공개 메소드

public GetScope ( int index ) : Scope
index int
리턴 Scope

InsertFn() 공개 메소드

public InsertFn ( string fnName, Modifiers mods, FnTyRef ty ) : void
fnName string
mods Modifiers
ty Ty.FnTyRef
리턴 void

InsertType() 공개 메소드

public InsertType ( string typeName, Modifiers mods, TyRef ty ) : void
typeName string
mods Modifiers
ty Ty.TyRef
리턴 void

InsertVar() 공개 메소드

public InsertVar ( string varName, TyRef ty, bool isMut ) : void
varName string
ty Ty.TyRef
isMut bool
리턴 void

Lookup() 공개 메소드

Attempts to find a symbol with the given name. Returns the symbol if it was found, null otherwise.
public Lookup ( string name ) : Symbol
name string
리턴 Symbol

Scope() 공개 메소드

public Scope ( string name, Scope parent = null ) : System.Collections.Generic
name string
parent Scope
리턴 System.Collections.Generic

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

WriteTo() 공개 메소드

public WriteTo ( StringBuilder builder, int tabs ) : void
builder System.Text.StringBuilder
tabs int
리턴 void

프로퍼티 상세

name 공개적으로 프로퍼티

public string name
리턴 string

parent 공개적으로 프로퍼티

public Scope parent
리턴 Scope