Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: pkg/compiler/lib/src/ssa/type_builder.dart

Issue 2918913003: Handle list and map literals (Closed)
Patch Set: Updated cf. comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/ssa/type_builder.dart
diff --git a/pkg/compiler/lib/src/ssa/type_builder.dart b/pkg/compiler/lib/src/ssa/type_builder.dart
index f511ccea349c6a25c932717771db2221193a633a..11273e409c11df067168f4980f8a7931d4630357 100644
--- a/pkg/compiler/lib/src/ssa/type_builder.dart
+++ b/pkg/compiler/lib/src/ssa/type_builder.dart
@@ -168,7 +168,7 @@ class TypeBuilder {
if (builder.compiler.options.useKernel) return true;
return invariant(spannable == null ? CURRENT_ELEMENT_SPANNABLE : spannable,
() {
- ClassElement contextClass = Types.getClassContext(type);
+ ClassElement contextClass = DartTypes.getClassContext(type);
return contextClass == null ||
contextClass == builder.localsHandler.contextClass;
},
« no previous file with comments | « pkg/compiler/lib/src/ssa/locals_handler.dart ('k') | tests/compiler/dart2js/kernel/compile_from_dill_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698