AnalysisSession class Null safety

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

AnalysisSession()

Properties

analysisContext AnalysisContext
The analysis context that created this session.
read-only
declaredVariables DeclaredVariables
The declared environment variables.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
resourceProvider ResourceProvider
Return the ResourceProvider that is used to access the file system.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uriConverter UriConverter
Return the URI converter used to convert between URI's and file paths.
read-only

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. [...]
getErrors2(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. [...]
@Deprecated('Use getErrors() instead')
getFile(String path) SomeFileResult
Return information about the file at the given absolute, normalized path.
getFile2(String path) SomeFileResult
Return information about the file at the given absolute, normalized path.
@Deprecated('Use getFile() instead')
getLibraryByUri(String uri) Future<SomeLibraryElementResult>
Return a future that will complete with information about the library element representing the library with the given uri.
getLibraryByUri2(String uri) Future<SomeLibraryElementResult>
Return a future that will complete with information about the library element representing the library with the given uri.
@Deprecated('Use getLibraryByUri() instead')
getParsedLibrary(String path) SomeParsedLibraryResult
Return information about the results of parsing units of the library file with the given absolute, normalized path.
getParsedLibrary2(String path) SomeParsedLibraryResult
Return information about the results of parsing units of the library file with the given absolute, normalized path.
@Deprecated('Use getParsedLibrary() instead')
getParsedLibraryByElement(LibraryElement element) SomeParsedLibraryResult
Return information about the results of parsing units of the library file with the given library element.
getParsedLibraryByElement2(LibraryElement element) SomeParsedLibraryResult
Return information about the results of parsing units of the library file with the given library element.
@Deprecated('Use getParsedLibraryByElement() instead')
getParsedUnit(String path) SomeParsedUnitResult
Return information about the results of parsing the file with the given absolute, normalized path.
getParsedUnit2(String path) SomeParsedUnitResult
Return information about the results of parsing the file with the given absolute, normalized path.
@Deprecated('Use getParsedUnit() instead')
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.
getResolvedLibrary2(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.
@Deprecated('Use getResolvedLibrary() instead')
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(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. [...]
@Deprecated('Use getResolvedLibraryByElement() instead')
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.
getResolvedUnit2(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.
@Deprecated('Use getResolvedUnit() instead')
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.
getUnitElement2(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.
@Deprecated('Use getUnitElement() instead')
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited