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

Side by Side Diff: pkg/compiler/lib/src/common/resolution.dart

Issue 1344733003: dart2js: Register helpers for updating send to type variable. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.common.resolution; 5 library dart2js.common.resolution;
6 6
7 import '../compiler.dart' show 7 import '../compiler.dart' show
8 Compiler; 8 Compiler;
9 import '../dart_types.dart' show 9 import '../dart_types.dart' show
10 DartType; 10 DartType;
11 import '../elements/elements.dart' show 11 import '../elements/elements.dart' show AstElement, ErroneousElement, TypeVariab leElement;
Johnni Winther 2015/09/15 13:23:39 Long line.
12 AstElement,
13 ErroneousElement;
14 import '../enqueue.dart' show 12 import '../enqueue.dart' show
15 ResolutionEnqueuer, 13 ResolutionEnqueuer,
16 WorldImpact; 14 WorldImpact;
17 import '../tree/tree.dart' show 15 import '../tree/tree.dart' show
18 AsyncForIn, 16 AsyncForIn,
19 Send; 17 Send;
20 import 'registry.dart' show 18 import 'registry.dart' show
21 Registry; 19 Registry;
22 import 'work.dart' show 20 import 'work.dart' show
23 ItemCompilationContext, 21 ItemCompilationContext,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 /// Called during resolution to notify to the backend that the 57 /// Called during resolution to notify to the backend that the
60 /// program explicitly throws an exception. 58 /// program explicitly throws an exception.
61 void onThrowExpression(Registry registry) {} 59 void onThrowExpression(Registry registry) {}
62 60
63 /// Called during resolution to notify to the backend that the 61 /// Called during resolution to notify to the backend that the
64 /// program has a global variable with a lazy initializer. 62 /// program has a global variable with a lazy initializer.
65 void onLazyField(Registry registry) {} 63 void onLazyField(Registry registry) {}
66 64
67 /// Called during resolution to notify to the backend that the 65 /// Called during resolution to notify to the backend that the
68 /// program uses a type variable as an expression. 66 /// program uses a type variable as an expression.
69 void onTypeVariableExpression(Registry registry) {} 67 void onTypeVariableExpression(Registry registry,
68 TypeVariableElement variable) {}
70 69
71 /// Called during resolution to notify to the backend that the 70 /// Called during resolution to notify to the backend that the
72 /// program uses a type literal. 71 /// program uses a type literal.
73 void onTypeLiteral(DartType type, Registry registry) {} 72 void onTypeLiteral(DartType type, Registry registry) {}
74 73
75 /// Called during resolution to notify to the backend that the 74 /// Called during resolution to notify to the backend that the
76 /// program has a catch statement with a stack trace. 75 /// program has a catch statement with a stack trace.
77 void onStackTraceInCatch(Registry registry) {} 76 void onStackTraceInCatch(Registry registry) {}
78 77
79 /// Register an is check to the backend. 78 /// Register an is check to the backend.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 110
112 /// Register that the application creates a constant map. 111 /// Register that the application creates a constant map.
113 void onMapLiteral(Registry registry, DartType type, bool isConstant) {} 112 void onMapLiteral(Registry registry, DartType type, bool isConstant) {}
114 113
115 /// Called when resolving the `Symbol` constructor. 114 /// Called when resolving the `Symbol` constructor.
116 void onSymbolConstructor(Registry registry) {} 115 void onSymbolConstructor(Registry registry) {}
117 116
118 /// Called when resolving a prefix or postfix expression. 117 /// Called when resolving a prefix or postfix expression.
119 void onIncDecOperation(Registry registry) {} 118 void onIncDecOperation(Registry registry) {}
120 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698