메소드 | 설명 | |
---|---|---|
CreateRuntimeScope ( |
Creates a new declarative scope for use at runtime.
|
|
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.
|
메소드 | 설명 | |
---|---|---|
CreateCatchScope ( |
Creates a new declarative scope for use inside a catch statement.
|
|
CreateEvalScope ( |
Creates a new declarative scope for use inside a strict mode eval statement.
|
|
CreateFunctionScope ( |
Creates a new declarative scope for use inside a function body (and within function argument default values).
|
|
DeclarativeScope ( |
Creates a new DeclarativeScope instance.
|
|
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.
|
|
GenerateScopeCreation ( |
Generates code that creates a new scope.
|
public static CreateRuntimeScope ( |
||
parentScope | A reference to the parent scope. Can not be |
|
declaredVariableNames | string | The names of variables that were declared in this scope. |
리턴 |
public Delete ( string variableName ) : bool | ||
variableName | string | The name of the variable. |
리턴 | bool |
public GetValue ( string variableName ) : object | ||
variableName | string | The name of the variable. |
리턴 | object |
public HasValue ( string variableName ) : bool | ||
variableName | string | The name of the variable to check. |
리턴 | bool |
public SetValue ( string variableName, object value ) : void | ||
variableName | string | The name of the variable. |
value | object | The new value of the variable. |
리턴 | void |