C# Class Symbols.SymbolTable.Scope

Afficher le fichier Open project: YourLocalFax/OLD-Score

Méthodes publiques

Свойство Type Description
name string
parent Scope

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetSymbol ( string name, Symbol &symbol ) : bool

Method Details

AddChild() public méthode

public AddChild ( Scope scope ) : void
scope Scope
Résultat void

GetScope() public méthode

public GetScope ( int index ) : Scope
index int
Résultat Scope

InsertFn() public méthode

public InsertFn ( string fnName, Modifiers mods, FnTyRef ty ) : void
fnName string
mods Modifiers
ty Ty.FnTyRef
Résultat void

InsertType() public méthode

public InsertType ( string typeName, Modifiers mods, TyRef ty ) : void
typeName string
mods Modifiers
ty Ty.TyRef
Résultat void

InsertVar() public méthode

public InsertVar ( string varName, TyRef ty, bool isMut ) : void
varName string
ty Ty.TyRef
isMut bool
Résultat void

Lookup() public méthode

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
Résultat Symbol

Scope() public méthode

public Scope ( string name, Scope parent = null ) : System.Collections.Generic
name string
parent Scope
Résultat System.Collections.Generic

ToString() public méthode

public ToString ( ) : string
Résultat string

WriteTo() public méthode

public WriteTo ( StringBuilder builder, int tabs ) : void
builder System.Text.StringBuilder
tabs int
Résultat void

Property Details

name public_oe property

public string name
Résultat string

parent public_oe property

public Scope parent
Résultat Scope