Property | Type | Description | |
---|---|---|---|
name | string | ||
parent | Scope |
Method | Description | |
---|---|---|
AddChild ( Scope scope ) : void | ||
GetScope ( int index ) : Scope | ||
InsertFn ( string fnName, Modifiers mods, |
||
InsertType ( string typeName, Modifiers mods, |
||
InsertVar ( string varName, |
||
Lookup ( string name ) : |
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 ( |
Method | Description | |
---|---|---|
GetSymbol ( string name, |
public InsertFn ( string fnName, Modifiers mods, |
||
fnName | string | |
mods | Modifiers | |
ty | ||
return | void |
public InsertType ( string typeName, Modifiers mods, |
||
typeName | string | |
mods | Modifiers | |
ty | ||
return | void |
public InsertVar ( string varName, |
||
varName | string | |
ty | ||
isMut | bool | |
return | void |
public Scope ( string name, Scope parent = null ) : System.Collections.Generic | ||
name | string | |
parent | Scope | |
return | System.Collections.Generic |
public WriteTo ( |
||
builder | ||
tabs | int | |
return | void |