Skip to content

Commit e304d34

Browse files
scheglovcommit-bot@chromium.org
authored and
commit-bot@chromium.org
committed
Use the corresponding TypeProvider(s) to create legacy / nonNullableByDefault TypeSystem.
R=brianwilkerson@google.com Change-Id: I3ddfec3c9b636bbe47b754e0acd508cb8aa367c8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126060 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
1 parent 5b5f34f commit e304d34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/analyzer/lib/src/dart/analysis/session.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ class SynchronousSession {
265265
implicitCasts: analysisOptions.implicitCasts,
266266
isNonNullableByDefault: false,
267267
strictInference: analysisOptions.strictInference,
268-
typeProvider: typeProvider,
268+
typeProvider: _typeProviderLegacy,
269269
);
270270

271271
_typeSystemNonNullableByDefault = TypeSystemImpl(
272272
implicitCasts: analysisOptions.implicitCasts,
273273
isNonNullableByDefault: true,
274274
strictInference: analysisOptions.strictInference,
275-
typeProvider: typeProvider,
275+
typeProvider: _typeProviderNonNullableByDefault,
276276
);
277277
}
278278
}

0 commit comments

Comments
 (0)