AnalysisSession class abstract
A consistent view of the results of analyzing one or more files.
The methods in this class that return analysis results will throw an InconsistentAnalysisException if the result to be returned might be inconsistent with any previously returned results.
Clients may not extend, implement or mix-in this class.
Constructors
Properties
- analysisContext → AnalysisContext
-
The analysis context that created this session.
no setter
- declaredVariables → DeclaredVariables
-
The declared environment variables.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- resourceProvider → ResourceProvider
-
Return the ResourceProvider that is used to access the file system.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uriConverter → UriConverter
-
Return the URI converter used to convert between URI's and file paths.
no setter
Methods
-
getErrors(
String path) → Future< SomeErrorsResult> -
Return a future that will complete with information about the errors
contained in the file with the given absolute, normalized
path
. -
getFile(
String path) → SomeFileResult -
Return information about the file at the given absolute, normalized
path
. -
getLibraryByUri(
String uri) → Future< SomeLibraryElementResult> -
Return a future that will complete with information about the library
element representing the library with the given
uri
. -
getParsedLibrary(
String path) → SomeParsedLibraryResult -
Return information about the results of parsing units of the library file
with the given absolute, normalized
path
. -
getParsedLibraryByElement(
LibraryElement element) → SomeParsedLibraryResult -
Return information about the results of parsing units of the library file
with the given library
element
. -
getParsedLibraryByElement2(
LibraryElement2 element) → SomeParsedLibraryResult -
Return information about the results of parsing units of the library file
with the given library
element
. -
getParsedUnit(
String path) → SomeParsedUnitResult -
Return information about the results of parsing the file with the given
absolute, normalized
path
. -
getResolvedLibrary(
String path) → Future< SomeResolvedLibraryResult> -
Return a future that will complete with information about the results of
resolving all of the files in the library with the given absolute,
normalized
path
. -
getResolvedLibraryByElement(
LibraryElement element) → Future< SomeResolvedLibraryResult> -
Return a future that will complete with information about the results of
resolving all of the files in the library with the library
element
. -
getResolvedLibraryByElement2(
LibraryElement2 element) → Future< SomeResolvedLibraryResult> -
Return a future that will complete with information about the results of
resolving all of the files in the library with the library
element
. -
getResolvedUnit(
String path) → Future< SomeResolvedUnitResult> -
Return a future that will complete with information about the results of
resolving the file with the given absolute, normalized
path
. -
getUnitElement(
String path) → Future< SomeUnitElementResult> -
Return a future that will complete with information about the results of
building the element model for the file with the given absolute,
normalized
path
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited