ContextLocator class

Determines the list of analysis contexts that can be used to analyze the files and folders that should be analyzed given a list of included files and folders and a list of excluded files and folders.

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

Constructors

ContextLocator({ResourceProvider resourceProvider})
Initialize a newly created context locator. If a resourceProvider is supplied, it will be used to access the file system. Otherwise the default resource provider will be used.
factory

Properties

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

Methods

locateContexts({List<String> includedPaths, List<String> excludedPaths = const <String>[], String optionsFile, String packagesFile, String sdkPath}) List<AnalysisContext>
Return a list of the analysis contexts that should be used to analyze the files that are included by the list of includedPaths and not excluded by the list of excludedPaths. [...]
locateRoots({List<String> includedPaths, List<String> excludedPaths, String optionsFile, String packagesFile}) List<ContextRoot>
Return a list of the context roots that should be used to analyze the files that are included by the list of includedPaths and not excluded by the list of 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