public static final class SWCFileScopeProvider.SWCFileScope extends ASFileScope
ASScopeBase.FilteredCollection<T>
compilationUnitReference, filePath, isEditableFile
EMPTY_USE_ARRAY, scopedNodeRef
allNamespacesSet, definitionStore
Constructor and Description |
---|
SWCFileScopeProvider.SWCFileScope(IWorkspace workspace,
String filePath) |
Modifier and Type | Method and Description |
---|---|
IASDocComment |
getComment(ICompilerProject project,
IDocumentableDefinition def) |
ICompilationUnit |
getCompilationUnit()
Get the
ICompilationUnit related to this ASFileScope . |
String |
getContainingSourcePath(String qName,
ICompilerProject project)
Resolve the source file path of the given definition QName.
|
boolean |
isSWC() |
boolean |
setCompilationUnit(ICompilationUnit compilationUnit)
Set the
ICompilationUnit related to this ASFileScope . |
addDependencyOnBuiltinType, addImplicitOpenNamespaces, addParsedFunctionBodies, collectExternallyVisibleDefinitions, getContainingDefinition, getContainingPath, getFilePrivateNamespaceReference, getImplicitImportsForAS, getNode, getOffsetLookup, getWorkspace, isEditableFile, isPackageName, namespaceSetSameAsContainingScopeNamespaceSet, removeParsedFunctionBodies, reparseFile, setOffsetLookup, toStringHeader
addImport, addLocalImportsToNamespaceSet, addNamespaceDirective, addNamespacesFromContainingScope, addUseDirective, adjustNamespaceSetForSuper, canDelegateLookupToContainingScope, compact, findProperty, findProperty, findProperty, findProperty, findProperty, findProperty, findProperty, findProperty, findPropertyQualified, findPropertyQualified, findPropertyQualified, findPropertyQualified, getAllPropertiesForMemberAccess, getAllPropertiesForScopeChain, getContainingClass, getContainingScope, getContainingScopeExplicitImports, getDefinition, getExplicitImportQualifiers, getFileScope, getFirstNamespaceDirective, getImports, getNamespaceSet, getNamespaceSetForName, getNamespaceSetForSuper, getPropertiesByNameForMemberAccess, getPropertyByNameForMemberAccess, getPropertyForMemberAccess, getPropertyForMemberAccess, getPropertyForScopeChain, getPropertyFromDef, getPropertyFromDef, getQualifiedPropertyFromDef, getQualifiedPropertyFromDef, getScopeNode, getUsedNamespaces, hasAnyBindableDefinitions, isInWith, reconnectScopeNode, setAsContainingScopeOfAnonymousFunction, setContainingDefinition, setContainingScope
addDefinition, addDefinitionToStore, getAllLocalDefinitions, getAllLocalDefinitionSets, getAllLocalNames, getAllLocalProperties, getLocalDefinitionSetByName, getLocalProperty, getLocalProperty, getLocalProperty, isContingentDefinitionNeeded, removeDefinition, removeDefinitionFromStore, toString, verify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllLocalDefinitions, getAllLocalDefinitionSets, getAllLocalNames, getContainingScope, getDefinition, getLocalDefinitionSetByName, getScopeNode
public SWCFileScopeProvider.SWCFileScope(IWorkspace workspace, String filePath)
public String getContainingSourcePath(String qName, ICompilerProject project)
ASFileScope
If this ASFileScope
comes from an ActionScript file, return the
ActionScript file path. File scopes coming from ABC or SWC files will
override this method to locate their source file path.
getContainingSourcePath
in class ASFileScope
qName
- QName of a definitionproject
- resolve the source path within this projectASFileScope
.public IASDocComment getComment(ICompilerProject project, IDocumentableDefinition def)
public boolean isSWC()
isSWC
in interface IFileScope
isSWC
in class ASFileScope
public boolean setCompilationUnit(ICompilationUnit compilationUnit)
ASFileScope
ICompilationUnit
related to this ASFileScope
.
This class is overridden by SWCFileScope which will never set the
project reference, as SWC scopes are shared across projects.setCompilationUnit
in class ASFileScope
compilationUnit
- A compilation unit.ICompilationUnit
was stored, false if not
stored. This happens when trying to store a SWCCompilationUnit.public ICompilationUnit getCompilationUnit()
ASFileScope
ICompilationUnit
related to this ASFileScope
.
SWCFileScope will override this class.
Note that this class should only ever be called from ASProjectScope or CompilerProject.
Clients should only ever use ASProjectScope.getCompilationUnitForScope()getCompilationUnit
in class ASFileScope
ICompilationUnit
. May be null when a SWCFileScopeProvider.SWCFileScope
Copyright © 2016 The Apache Software Foundation. All rights reserved.