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

Unified Diff: pkg/compiler/lib/src/resolution/variables.dart

Issue 1422623014: Add TypeUse. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 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 | « pkg/compiler/lib/src/resolution/signatures.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/variables.dart
diff --git a/pkg/compiler/lib/src/resolution/variables.dart b/pkg/compiler/lib/src/resolution/variables.dart
index 5cf5f4b2a160d6e8e2fce0e87111a728abe85802..6f22eed3214167ac8b1f69657f4b30f15930e2b8 100644
--- a/pkg/compiler/lib/src/resolution/variables.dart
+++ b/pkg/compiler/lib/src/resolution/variables.dart
@@ -11,6 +11,8 @@ import '../elements/modelx.dart' show
LocalVariableElementX,
VariableList;
import '../tree/tree.dart';
+import '../universe/use.dart' show
+ TypeUse;
import '../util/util.dart' show
Link;
@@ -54,7 +56,9 @@ class VariableDefinitionsVisitor extends CommonResolverVisitor<Identifier> {
Identifier visitIdentifier(Identifier node) {
// The variable is initialized to null.
- registry.registerInstantiatedType(compiler.coreTypes.nullType);
+ // TODO(johnniwinther): Register a feature instead.
+ registry.registerTypeUse(
+ new TypeUse.instantiation(compiler.coreTypes.nullType));
if (definitions.modifiers.isConst) {
reporter.reportErrorMessage(
node, MessageKind.CONST_WITHOUT_INITIALIZER);
« no previous file with comments | « pkg/compiler/lib/src/resolution/signatures.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698