@@ -33,6 +33,9 @@ abstract class TypeInferrer {
3333 /// Gets the [TypeSchemaEnvironment] being used for type inference.
3434 TypeSchemaEnvironment get typeSchemaEnvironment;
3535
36+ /// Gets the [ExtensionScope] being used for type inference.
37+ ExtensionScope get extensionScope;
38+
3639 /// Returns the [FlowAnalysis] used during inference.
3740 FlowAnalysis <
3841 TreeNode ,
@@ -134,7 +137,8 @@ class TypeInferrerImpl implements TypeInferrer {
134137
135138 final SourceLibraryBuilder libraryBuilder;
136139
137- final LookupScope extensionScope;
140+ @override
141+ final ExtensionScope extensionScope;
138142
139143 late final StaticTypeContext staticTypeContext =
140144 new StaticTypeContextImpl .direct (
@@ -381,11 +385,14 @@ class TypeInferrerImplBenchmarked implements TypeInferrer {
381385 final TypeInferrerImpl impl;
382386 final Benchmarker benchmarker;
383387
388+ @override
389+ final ExtensionScope extensionScope;
390+
384391 TypeInferrerImplBenchmarked (
385392 TypeInferenceEngine engine,
386393 InterfaceType ? thisType,
387394 SourceLibraryBuilder libraryBuilder,
388- LookupScope extensionScope,
395+ this . extensionScope,
389396 AssignedVariables <TreeNode , VariableDeclaration > assignedVariables,
390397 InferenceDataForTesting ? dataForTesting,
391398 this .benchmarker,
0 commit comments