| Index: pkg/analyzer/lib/src/context/context.dart
|
| diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
|
| index c275c07464a1b70d72cb0dcbeb5cc492bbf148d3..dcff4f6415eeafa932f4f74b5249d81c6695b89f 100644
|
| --- a/pkg/analyzer/lib/src/context/context.dart
|
| +++ b/pkg/analyzer/lib/src/context/context.dart
|
| @@ -420,6 +420,10 @@ class AnalysisContextImpl implements InternalAnalysisContext {
|
|
|
| @override
|
| TypeProvider get typeProvider {
|
| + // Make sure a task didn't accidentally try to call back into the context
|
| + // to retrieve the type provider.
|
| + assert(!_taskManager.isTaskRunning);
|
| +
|
| if (_typeProvider != null) {
|
| return _typeProvider;
|
| }
|
|
|