AnalysisContext class abstract

A representation of a body of code and the context in which the code is to be analyzed.

The body of code is represented as a collection of files and directories, as defined by the list of included paths. If the list of included paths contains one or more directories, then zero or more files or directories within the included directories can be excluded from analysis, as defined by the list of excluded paths.

Clients may not extend, implement or mix-in this class.

Constructors

AnalysisContext()

Properties

analysisOptions AnalysisOptions
The analysis options used to control the way the code is analyzed.
no setter
contextRoot ContextRoot
Return the context root from which this context was created.
no setter
currentSession AnalysisSession
Return the currently active analysis session.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkRoot Folder?
The root directory of the SDK against which files of this context are analyzed, or null if the SDK is not directory based.
no setter

Methods

applyPendingFileChanges() Future<List<String>>
Return a Future that completes after pending file changes are applied, so that currentSession can be used to compute results.
changeFile(String path) → void
Schedules the file with the path to be read before producing new analysis results.
getAnalysisOptionsForFile(File file) AnalysisOptions
Get the AnalysisOptions instance for the given file.
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