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

Unified Diff: lib/ast.dart

Issue 2465893002: Add strong mode type checking pass. (Closed)
Patch Set: Merge with master and remove visitBlockExpression Created 4 years, 1 month 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
« no previous file with comments | « no previous file | lib/type_algebra.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ast.dart
diff --git a/lib/ast.dart b/lib/ast.dart
index d3ac0535120ef6a424910824a82164e3c91924dd..dc9cb6d746dcd22c33fdaef7ddef60f81a46a564 100644
--- a/lib/ast.dart
+++ b/lib/ast.dart
@@ -2250,7 +2250,7 @@ class ListLiteral extends Expression {
}
DartType getStaticType(TypeEnvironment types) {
- return types.listType(typeArgument);
+ return types.literalListType(typeArgument);
}
accept(ExpressionVisitor v) => v.visitListLiteral(this);
@@ -2282,7 +2282,7 @@ class MapLiteral extends Expression {
}
DartType getStaticType(TypeEnvironment types) {
- return types.mapType(keyType, valueType);
+ return types.literalMapType(keyType, valueType);
}
accept(ExpressionVisitor v) => v.visitMapLiteral(this);
« no previous file with comments | « no previous file | lib/type_algebra.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698