AnalysisContext class

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
excludedPaths List<String>
A list of the absolute, normalized paths of files and directories that will not be analyzed. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
includedPaths List<String>
A list of the absolute, normalized paths of files and directories that will be analyzed. If a path in the list represents a file, then that file will be analyzed, even if it is in the list of excludedPaths. If path in the list represents a directory, then all of the files contained in that directory, either directly or indirectly, and that are not explicitly excluded by the list of excludedPaths will be analyzed. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
workspace → Workspace
Return the workspace for containing the context root.
read-only

Methods

analyzedFiles() Iterable<String>
Return the absolute, normalized paths of all of the files that are contained in this context. These are all of the files that are included directly or indirectly by one or more of the includedPaths and that are not excluded by any of the excludedPaths. [...]
isAnalyzed(String path) bool
Return true if the file or directory with the given path will be analyzed in this context. A file (or directory) will be analyzed if it is either the same as or contained in one of the includedPaths and, if it is contained in one of the includedPaths, is not the same as or contained in one of the excludedPaths. [...]
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