ContextRoot class

Information about the root directory associated with an analysis context.

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

Constructors

ContextRoot(String root, List<String> exclude, {@required Context pathContext})
Initialize a newly created context root.

Properties

exclude List<String>
A list of the absolute paths of files and directories within the root directory that should not be analyzed.
final
hashCode int
The hash code for this object. [...]
read-only, override
optionsFilePath String
An informative value for the file path that the analysis options were read from. This value can be null if there is no analysis options file or if the location of the file has not yet been discovered.
read / write
pathContext Context
The path context to use when manipulating paths.
final
root String
The absolute path of the root directory containing the files to be analyzed.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

containsFile(String filePath) bool
Return true if the file with the given filePath is contained within this context root. A file contained in a context root if it is within the context root neither explicitly excluded or within one of the excluded directories.
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 ==(dynamic other) bool
The equality operator. [...]
override