OLD | NEW |
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; |
(...skipping 25 matching lines...) Expand all Loading... |
36 WorldImpact impact = compiler.analyze(this, world); | 36 WorldImpact impact = compiler.analyze(this, world); |
37 _isAnalyzed = true; | 37 _isAnalyzed = true; |
38 return impact; | 38 return impact; |
39 } | 39 } |
40 | 40 |
41 bool get isAnalyzed => _isAnalyzed; | 41 bool get isAnalyzed => _isAnalyzed; |
42 } | 42 } |
43 | 43 |
44 /// Backend callbacks function specific to the resolution phase. | 44 /// Backend callbacks function specific to the resolution phase. |
45 class ResolutionCallbacks { | 45 class ResolutionCallbacks { |
46 /// Register that [node] is a call to `assert`. | 46 /// Register that an assert has been seen. |
47 void onAssert(Send node, Registry registry) {} | 47 void onAssert(bool hasMessage, Registry registry) {} |
48 | 48 |
49 /// Register that an 'await for' has been seen. | 49 /// Register that an 'await for' has been seen. |
50 void onAsyncForIn(AsyncForIn node, Registry registry) {} | 50 void onAsyncForIn(AsyncForIn node, Registry registry) {} |
51 | 51 |
52 /// Called during resolution to notify to the backend that the | 52 /// Called during resolution to notify to the backend that the |
53 /// program uses string interpolation. | 53 /// program uses string interpolation. |
54 void onStringInterpolation(Registry registry) {} | 54 void onStringInterpolation(Registry registry) {} |
55 | 55 |
56 /// Called during resolution to notify to the backend that the | 56 /// Called during resolution to notify to the backend that the |
57 /// program has a catch statement. | 57 /// program has a catch statement. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 /// Register that the application creates a constant map. | 114 /// Register that the application creates a constant map. |
115 void onMapLiteral(Registry registry, DartType type, bool isConstant) {} | 115 void onMapLiteral(Registry registry, DartType type, bool isConstant) {} |
116 | 116 |
117 /// Called when resolving the `Symbol` constructor. | 117 /// Called when resolving the `Symbol` constructor. |
118 void onSymbolConstructor(Registry registry) {} | 118 void onSymbolConstructor(Registry registry) {} |
119 | 119 |
120 /// Called when resolving a prefix or postfix expression. | 120 /// Called when resolving a prefix or postfix expression. |
121 void onIncDecOperation(Registry registry) {} | 121 void onIncDecOperation(Registry registry) {} |
122 } | 122 } |
OLD | NEW |