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.
- analysisOptions → AnalysisOptions
The analysis options used to control the way the code is analyzed.
- contextRoot → ContextRoot
Return the context root from which this context was created.
- currentSession → AnalysisSession
Return the currently active analysis session.
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
- sdkRoot → Folder?
The root directory of the SDK against which files of this context are
nullif 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