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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart

Issue 2952313002: Implement type inference for type literals (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart b/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
index eded7160c1bbc38ea1f434e9ee3d844b7c93b1e3..a55ae33c97254dcd44247b20e7a8bc5df818a149 100644
--- a/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
@@ -12,6 +12,7 @@ import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart'
KernelPropertyAssign,
KernelStaticAssignment,
KernelThisExpression,
+ KernelTypeLiteral,
KernelVariableAssignment;
import 'package:front_end/src/fasta/kernel/utils.dart' show offsetForToken;
@@ -954,9 +955,9 @@ class TypeDeclarationAccessor extends ReadOnlyAccessor {
new StringLiteral(message)..fileOffset = offsetForToken(token))
..fileOffset = offset;
} else {
- super.expression =
- new TypeLiteral(buildType(null, nonInstanceAccessIsError: true))
- ..fileOffset = offsetForToken(token);
+ super.expression = new KernelTypeLiteral(
+ buildType(null, nonInstanceAccessIsError: true))
+ ..fileOffset = offsetForToken(token);
}
}
return super.expression;
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698