Package | Description |
---|---|
org.apache.flex.compiler.internal.as.codegen | |
org.apache.flex.compiler.internal.codegen.databinding | |
org.apache.flex.compiler.internal.semantics |
Modifier and Type | Class and Description |
---|---|
class |
GlobalLexicalScope
The global lexical scope for codegen.
|
class |
InlineFunctionLexicalScope
Lexical scope which is constructed when inlining a function.
|
Modifier and Type | Field and Description |
---|---|
protected LexicalScope |
MXMLClassDirectiveProcessor.globalScope
The AET lexical scope in which the generated class lives.
|
Modifier and Type | Method and Description |
---|---|
LexicalScope |
LexicalScope.getEnclosingFrame() |
LexicalScope |
LexicalScope.popFrame()
Pop the current lexical scope.
|
LexicalScope |
LexicalScope.pushFrame()
Push a new lexical scope.
|
Modifier and Type | Method and Description |
---|---|
MethodInfo |
ICodeGenerator.createMethodInfo(LexicalScope scope,
FunctionNode func,
Name alternate_name)
Creates a MethodInfo specifying the signature of a method
declared by a FunctionNode.
|
MethodInfo |
ABCGenerator.createMethodInfo(LexicalScope scope,
FunctionNode func,
Name alternate_name)
Creates a MethodInfo specifying the signature of a method
declared by a FunctionNode.
|
MethodInfo |
ICodeGenerator.createMethodInfoWithDefaultArgumentValues(LexicalScope scope,
FunctionNode func)
Creates a MethodInfo specifying the signature of a method
declared by a FunctionNode, and adds in the information for any
default argument values.
|
MethodInfo |
ABCGenerator.createMethodInfoWithDefaultArgumentValues(LexicalScope scope,
FunctionNode func)
Creates a MethodInfo specifying the signature of a method
declared by a FunctionNode, and adds in the information for any
default argument values.
|
MethodInfo |
ICodeGenerator.generateFunction(FunctionNode func,
LexicalScope enclosing_scope,
InstructionList instance_init_insns,
Name alternateName)
Generate code for a function declaration, and put its initialization code
on the relevant instruction list.
|
MethodInfo |
ABCGenerator.generateFunction(FunctionNode func,
LexicalScope enclosing_scope,
InstructionList instance_init_insns,
Name alternate_name)
Generate code for a function declaration, and put its initialization code
on the relevant instruction list.
|
GenerateFunctionInParallelResult |
ICodeGenerator.generateFunctionInParallel(ExecutorService executorService,
FunctionNode func,
LexicalScope enclosing_scope)
Generate code for a function declaration, using a background thread
provided by the specified
ExecutorService . |
GenerateFunctionInParallelResult |
ABCGenerator.generateFunctionInParallel(ExecutorService executorService,
FunctionNode func,
LexicalScope enclosing_scope)
Generate code for a function declaration, using a background thread
provided by the specified
ExecutorService . |
InstructionList |
ICodeGenerator.generateInstructions(IASNode subtree,
int goal_state,
LexicalScope scope)
Translate an AST into ABC instructions.
|
InstructionList |
ABCGenerator.generateInstructions(IASNode subtree,
int goal_state,
LexicalScope scope)
Translate an AST into ABC instructions.
|
InstructionList |
ABCGenerator.generateInstructions(IASNode subtree,
int goal_state,
LexicalScope scope,
InstructionList instance_init_insns)
Translate an AST into ABC instructions.
|
void |
ICodeGenerator.generateMethodBodyForFunction(MethodInfo mi,
IASNode node,
LexicalScope enclosing_scope,
InstructionList instance_init_insns)
Helper method used by
generateFunction() (and also by
generateEventHandler() in MXMLDocumentDirectiveProcessor). |
void |
ABCGenerator.generateMethodBodyForFunction(MethodInfo mi,
IASNode node,
LexicalScope enclosing_scope,
InstructionList instance_init_insns)
Helper method used by
generateFunction() (and also by
generateEventHandler() in MXMLDocumentDirectiveProcessor). |
void |
ICodeGenerator.generateMXMLDataBindingGetterFunction(MethodInfo mi,
List<IExpressionNode> nodes,
LexicalScope enclosing_scope)
Helper method used by databinding codegen to emit an anonymous function
based on a list of
IExpressionNode 's. |
void |
ABCGenerator.generateMXMLDataBindingGetterFunction(MethodInfo mi,
List<IExpressionNode> nodes,
LexicalScope enclosing_scope)
Helper method used by databinding codegen to emit an anonymous function
based on a list of
IExpressionNode 's. |
void |
ICodeGenerator.generateMXMLDataBindingSetterFunction(MethodInfo mi,
IExpressionNode setterExpression,
LexicalScope enclosing_scope)
Helper method used by mxml databinding codegen to emit an anonymous
function used by an mxml data binding destination function.
|
void |
ABCGenerator.generateMXMLDataBindingSetterFunction(MethodInfo mi,
IExpressionNode setterExpression,
LexicalScope enclosing_scope)
Helper method used by mxml databinding codegen to emit an anonymous
function used by an mxml data binding destination function.
|
protected void |
LexicalScope.mergeTemps(LexicalScope scopeToMerge)
Merge the temps from the specified lexical scope into this lexical scope.
|
Object |
ICodeGenerator.reduceSubtree(IASNode subtree,
LexicalScope scope,
int goal)
Reduce an AST to its equivalent ABC structures.
|
Object |
ABCGenerator.reduceSubtree(IASNode subtree,
LexicalScope scope,
int goal)
Reduce an AST to its equivalent ABC structures.
|
void |
ABCGeneratingReducer.setCurrentscope(LexicalScope scope)
Set this reducer's initial LexicalScope.
|
Constructor and Description |
---|
InlineFunctionLexicalScope(LexicalScope enclosingFrame,
IASScope containingScope,
boolean storeClassBinding,
FunctionNode functionNode) |
LexicalScope(LexicalScope enclosingFrame)
constructor which is called whenever pushing a new
lexical scope
|
LexicalScope(LexicalScope enclosingFrame,
boolean mergableTempManager)
constructor which is called whenever pushing a new
lexical scope, and the temps are potentially going
to be shared with enclosing scope.
|
Modifier and Type | Method and Description |
---|---|
static void |
BindingCodeGenUtils.generateGetter(IABCVisitor emitter,
InstructionList ret,
List<IExpressionNode> expressions,
LexicalScope enclosing_scope)
emits the code for anonymous getter function, then adds to the instruction list for instantiating one onto the stack
|
static void |
BindingCodeGenUtils.generateSetter(InstructionList ret,
IExpressionNode expression,
LexicalScope enclosing_scope)
emits the code for anonymous setter function, then adds to the instruction list for instantiating one onto the stack
|
Modifier and Type | Method and Description |
---|---|
static void |
SemanticUtils.checkReturnValueHasNoTypeDeclaration(LexicalScope scope,
IFunctionNode node,
IFunctionDefinition func)
Checks that a given function definition has a return type, and logs a problem if not
|
static void |
SemanticUtils.checkScopedToDefaultNamespaceProblem(LexicalScope scope,
BaseDefinitionNode node,
IDefinition definition,
String className)
Check for identifiers that don't have a namespace quailifier.
|
Constructor and Description |
---|
MethodBodySemanticChecker(LexicalScope current_scope)
Construct a new MethodBodySemanticChecker from the current lexical scope.
|
Copyright © 2016 The Apache Software Foundation. All rights reserved.