Свойство | Type | Description | |
---|---|---|---|
globalNames | ISet |
||
stateType | StateType | ||
supers | List |
||
table | ISet |
Méthode | 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 |
Méthode | 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 AddGlobalName ( string name ) : void | ||
name | string | |
Résultat | void |
public Bind ( Analyzer analyzer, Exp target, DataType rvalue, BindingKind kind ) : void | ||
analyzer | Analyzer | |
target | Exp | |
rvalue | DataType | |
kind | BindingKind | |
Résultat | void |
public Bind ( Analyzer analyzer, Identifier id, DataType rvalue, BindingKind kind ) : void | ||
analyzer | Analyzer | |
id | Identifier | |
rvalue | DataType | |
kind | BindingKind | |
Résultat | void |
public Bind ( Analyzer analyzer, List |
||
analyzer | Analyzer | |
xs | List |
|
rvalue | DataType | |
kind | BindingKind | |
Résultat | void |
public BindByScope ( Analyzer analyzer, Exp target, DataType rvalue ) : void | ||
analyzer | Analyzer | |
target | Exp | |
rvalue | DataType | |
Résultat | void |
public BindIterator ( Analyzer analyzer, Exp target, Exp iter, DataType iterType, BindingKind kind ) : void | ||
analyzer | Analyzer | |
target | Exp | |
iter | Exp | |
iterType | DataType | |
kind | BindingKind | |
Résultat | void |
public Insert ( Analyzer analyzer, string id, Exp node, DataType type, BindingKind kind ) : Binding | ||
analyzer | Analyzer | |
id | string | |
node | Exp | |
type | DataType | |
kind | BindingKind | |
Résultat | Binding |
public Insert ( Analyzer analyzer, string id, |
||
analyzer | Analyzer | |
id | string | |
node | ||
type | DataType | |
kind | BindingKind | |
Résultat | Binding |
public LookupAttribute ( string attr ) : ISet |
||
attr | string | |
Résultat | ISet |
public LookupAttributeType ( string attr ) : DataType | ||
attr | string | |
Résultat | DataType |
public static MakeUnion ( ISet |
||
bs | ISet |
|
Résultat | DataType |
public State ( |
||
parent | ||
type | StateType | |
Résultat | System |
public Update ( string id, Binding b ) : ISet |
||
id | string | |
b | Binding | |
Résultat | ISet |
public extendPath ( Analyzer analyzer, string pathname ) : string | ||
analyzer | Analyzer | |
pathname | string | |
Résultat | string |
public getStateOfType ( StateType type ) : |
||
type | StateType | |
Résultat |
public lookupType ( string name ) : DataType | ||
name | string | |
Résultat | DataType |
public static merge ( |
||
state1 | ||
state2 | ||
Résultat |
public setStateType ( StateType type ) : void | ||
type | StateType | |
Résultat | void |
public static transformExpr ( Analyzer analyzer, Exp n, |
||
analyzer | Analyzer | |
n | Exp | |
s | ||
Résultat | DataType |
public static transformExprs ( Analyzer analyzer, List |
||
analyzer | Analyzer | |
exprs | List |
|
s | ||
Résultat | void |