Property | Type | Description | |
---|---|---|---|
globalNames | ISet |
||
stateType | StateType | ||
supers | List |
||
table | ISet |
Method | Description | |
---|---|---|
AddGlobalName ( string name ) : void | ||
Bind ( Analyzer analyzer, Exp target, DataType rvalue, BindingKind kind ) : void |
Bind a name to this scope, including destructuring assignment.
|
|
Bind ( Analyzer analyzer, Identifier id, DataType rvalue, BindingKind kind ) : void | ||
Bind ( Analyzer analyzer, List |
||
BindByScope ( Analyzer analyzer, Exp target, DataType rvalue ) : void |
Without specifying a kind, bind determines the kind according to the type of the scope.
|
|
BindIterator ( Analyzer analyzer, Exp target, Exp iter, DataType iterType, BindingKind kind ) : void | ||
Clone ( ) : |
||
GetGlobalTable ( ) : |
||
Insert ( Analyzer analyzer, string id, Exp node, DataType type, BindingKind kind ) : Binding | ||
Insert ( Analyzer analyzer, string id, |
||
IsGlobalName ( string name ) : bool | ||
Lookup ( string name ) : ISet |
Look up a name in the current symbol table. If not found, recurse on the parent table.
|
|
LookupAttribute ( string attr ) : ISet |
||
LookupAttributeType ( string attr ) : DataType |
Look for an attribute named and if found, return its type.
|
|
LookupLocal ( string name ) : ISet |
Look up a name in the current symbol table only. Don't recurse on the parent table.
|
|
LookupScope ( string name ) : ISet |
Look up a name in the module if it is declared as global, otherwise look it up locally.
|
|
MakeUnion ( ISet |
||
Merge ( |
||
Overwrite ( |
||
Remove ( string id ) : void | ||
State ( |
||
State ( |
||
ToString ( ) : string | ||
Update ( string id, Binding b ) : ISet |
||
Update ( string id, ISet |
||
addSuper ( |
||
entrySet ( ) : ISet |
||
extendPath ( Analyzer analyzer, string pathname ) : string | ||
getForwarding ( ) : |
||
getStateOfType ( StateType type ) : |
Find a symbol table of a certain type in the enclosing scopes.
|
|
lookupType ( string name ) : DataType |
Look for a binding named {@code name} and if found, return its type.
|
|
merge ( |
||
putAll ( |
||
setStateType ( StateType type ) : void | ||
transformExpr ( Analyzer analyzer, Exp n, |
||
transformExprs ( Analyzer analyzer, List |
Method | Description | |
---|---|---|
ReportUnpackMismatch ( Analyzer analyzer, List |
||
getModuleBindingIfGlobal ( string name ) : ISet |
If {@code name} is declared as a global, return the module binding.
|
|
setAttr ( Analyzer analyzer, AttributeAccess attr, DataType attrType, DataType targetType ) : void | ||
setAttrType ( Analyzer analyzer, AttributeAccess attr, DataType targetType, DataType attrType ) : void |
public Bind ( Analyzer analyzer, Exp target, DataType rvalue, BindingKind kind ) : void | ||
analyzer | Analyzer | |
target | Exp | |
rvalue | DataType | |
kind | BindingKind | |
return | void |
public Bind ( Analyzer analyzer, Identifier id, DataType rvalue, BindingKind kind ) : void | ||
analyzer | Analyzer | |
id | Identifier | |
rvalue | DataType | |
kind | BindingKind | |
return | void |
public Bind ( Analyzer analyzer, List |
||
analyzer | Analyzer | |
xs | List |
|
rvalue | DataType | |
kind | BindingKind | |
return | void |
public BindByScope ( Analyzer analyzer, Exp target, DataType rvalue ) : void | ||
analyzer | Analyzer | |
target | Exp | |
rvalue | DataType | |
return | void |
public BindIterator ( Analyzer analyzer, Exp target, Exp iter, DataType iterType, BindingKind kind ) : void | ||
analyzer | Analyzer | |
target | Exp | |
iter | Exp | |
iterType | DataType | |
kind | BindingKind | |
return | void |
public Insert ( Analyzer analyzer, string id, Exp node, DataType type, BindingKind kind ) : Binding | ||
analyzer | Analyzer | |
id | string | |
node | Exp | |
type | DataType | |
kind | BindingKind | |
return | Binding |
public Insert ( Analyzer analyzer, string id, |
||
analyzer | Analyzer | |
id | string | |
node | ||
type | DataType | |
kind | BindingKind | |
return | Binding |
public LookupAttribute ( string attr ) : ISet |
||
attr | string | |
return | ISet |
public LookupAttributeType ( string attr ) : DataType | ||
attr | string | |
return | DataType |
public static MakeUnion ( ISet |
||
bs | ISet |
|
return | DataType |
public State ( |
||
parent | ||
type | StateType | |
return | System |
public Update ( string id, Binding b ) : ISet |
||
id | string | |
b | Binding | |
return | ISet |
public extendPath ( Analyzer analyzer, string pathname ) : string | ||
analyzer | Analyzer | |
pathname | string | |
return | string |
public getStateOfType ( StateType type ) : |
||
type | StateType | |
return |
public static merge ( |
||
state1 | ||
state2 | ||
return |
public setStateType ( StateType type ) : void | ||
type | StateType | |
return | void |
public static transformExpr ( Analyzer analyzer, Exp n, |
||
analyzer | Analyzer | |
n | Exp | |
s | ||
return | DataType |
public static transformExprs ( Analyzer analyzer, List |
||
analyzer | Analyzer | |
exprs | List |
|
s | ||
return | void |