public static final class SWCFileScopeProvider.SWCFileScope extends ASFileScope
ASScopeBase.FilteredCollection<T>compilationUnitReference, filePath, isEditableFileEMPTY_USE_ARRAY, scopedNodeRefallNamespacesSet, 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, toStringHeaderaddImport, 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, setContainingScopeaddDefinition, addDefinitionToStore, getAllLocalDefinitions, getAllLocalDefinitionSets, getAllLocalNames, getAllLocalProperties, getLocalDefinitionSetByName, getLocalProperty, getLocalProperty, getLocalProperty, isContingentDefinitionNeeded, removeDefinition, removeDefinitionFromStore, toString, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllLocalDefinitions, getAllLocalDefinitionSets, getAllLocalNames, getContainingScope, getDefinition, getLocalDefinitionSetByName, getScopeNodepublic 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 ASFileScopeqName - QName of a definitionproject - resolve the source path within this projectASFileScope.public IASDocComment getComment(ICompilerProject project, IDocumentableDefinition def)
public boolean isSWC()
isSWC in interface IFileScopeisSWC in class ASFileScopepublic boolean setCompilationUnit(ICompilationUnit compilationUnit)
ASFileScopeICompilationUnit 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 ASFileScopecompilationUnit - A compilation unit.ICompilationUnit was stored, false if not
stored. This happens when trying to store a SWCCompilationUnit.public ICompilationUnit getCompilationUnit()
ASFileScopeICompilationUnit 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 ASFileScopeICompilationUnit. May be null when a SWCFileScopeProvider.SWCFileScopeCopyright © 2016 The Apache Software Foundation. All rights reserved.