ContextBuilder class abstract
A utility class used to build an analysis context based on a context root.
Clients may not extend, implement or mix-in this class.
- Annotations
-
- @Deprecated('Use AnalysisContextCollection instead')
Constructors
- ContextBuilder({ResourceProvider resourceProvider})
-
Initialize a newly created context builder. If a
resourceProvider
is given, then 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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createContext(
{required ContextRoot contextRoot, DeclaredVariables? declaredVariables, List< String> ? librarySummaryPaths, String? sdkPath, String? sdkSummaryPath}) → AnalysisContext -
Return an analysis context corresponding to the given
contextRoot
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited