public class ASScopeCache extends Object
Constructor and Description |
---|
ASScopeCache(CompilerProject project,
ASScope scope) |
Modifier and Type | Method and Description |
---|---|
IDefinition |
findPropertyMultiname(IResolvedQualifiersReference ref,
DependencyType dt)
Resolves the specified reference to a definition and adds a dependency to
the dependency graph if needed.
|
Object |
getConstantValue(ConstantDefinition constDef)
get the constant value for the given const definition.
|
boolean |
needsEventDispatcher()
Determines if the
TypeScope this cache is associated with needs
an implicit 'implements flash.events.IEventDispatcher' due to the class,
or some of its members being marked bindable. |
IInterfaceDefinition[] |
resolveInterfaces() |
public ASScopeCache(CompilerProject project, ASScope scope)
public IDefinition findPropertyMultiname(IResolvedQualifiersReference ref, DependencyType dt)
This method is only public so that the implementation of
IResolveQualifiersReference.resolve can call it. This method should only
be called from the implementation of IResolvedQualifiersReference
.
ref
- The reference to resolve.dt
- The type of dependency to add if a new edge needs to be added
to the dependency graph.public boolean needsEventDispatcher()
TypeScope
this cache is associated with needs
an implicit 'implements flash.events.IEventDispatcher' due to the class,
or some of its members being marked bindable. The result of this method
is cached.
Only
ClassDefinitionBase.needsEventDispatcher(ICompilerProject)
should call this method. All other code should call
ClassDefinitionBase.needsEventDispatcher(ICompilerProject)
.
public IInterfaceDefinition[] resolveInterfaces()
public Object getConstantValue(ConstantDefinition constDef)
constDef
- The constant definition you want the constant value ofCopyright © 2016 The Apache Software Foundation. All rights reserved.