Свойство | Type | Description | |
---|---|---|---|
DeclareVariable | DeclaredVariable | ||
GenerateDeclarations | void | ||
GenerateScopeCreation | void | ||
GenerateScopeDestruction | void | ||
GetDeclaredVariable | DeclaredVariable | ||
HasDeclaredVariable | bool | ||
RemovedDeclaredVariable | void |
Méthode | Description | |
---|---|---|
Delete ( string variableName ) : bool |
Deletes the variable from the scope.
|
|
GetValue ( string variableName ) : object |
Returns the value of the given variable.
|
|
HasValue ( string variableName ) : bool |
Returns
|
|
SetValue ( string variableName, object value ) : void |
Sets the value of the given variable.
|
Méthode | Description | |
---|---|---|
Scope ( |
Creates a new Scope instance.
|
|
Scope ( |
Creates a new Scope instance.
|
Méthode | Description | |
---|---|---|
DeclareVariable ( string name, Jurassic.Compiler.Expression valueAtTopOfScope = null, bool writable = true, bool deletable = false ) : DeclaredVariable |
Declares a variable or function in this scope. This will be initialized with the value of the given expression.
|
|
GenerateDeclarations ( |
Generates code that initializes the variable and function declarations.
|
|
GenerateScopeCreation ( |
Generates code that creates a new scope.
|
|
GenerateScopeDestruction ( |
Generates code that restores the parent scope as the active scope.
|
|
GetDeclaredVariable ( string variableName ) : DeclaredVariable |
Gets the index of the given variable.
|
|
HasDeclaredVariable ( string name ) : bool |
Returns
|
|
RemovedDeclaredVariable ( string name ) : void |
Removes a declared variable from the scope.
|
public abstract Delete ( string variableName ) : bool | ||
variableName | string | The name of the variable. |
Résultat | bool |
public abstract GetValue ( string variableName ) : object | ||
variableName | string | The name of the variable. |
Résultat | object |
public abstract HasValue ( string variableName ) : bool | ||
variableName | string | The name of the variable to check. |
Résultat | bool |
protected Scope ( |
||
parentScope | A reference to the parent scope, or |
|
Résultat | System |
protected Scope ( |
||
parentScope | A reference to the parent scope, or |
|
declaredVariableCount | int | The number of variables declared in this scope. |
Résultat | System |
public abstract SetValue ( string variableName, object value ) : void | ||
variableName | string | The name of the variable. |
value | object | The new value of the variable. |
Résultat | void |