AnalysisContext class Null safety

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.
read-only
contextRoot ContextRoot
Return the context root from which this context was created.
read-only
currentSession AnalysisSession
Return the currently active analysis session.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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.
read-only
workspace → Workspace
Return the workspace for containing the context root.
@Deprecated('Use contextRoot.workspace instead'), read-only

Methods

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