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; |
11 import '../elements/elements.dart' show | 11 import '../elements/elements.dart' show |
12 AstElement; | 12 AstElement, |
| 13 ErroneousElement; |
13 import '../enqueue.dart' show | 14 import '../enqueue.dart' show |
14 ResolutionEnqueuer, | 15 ResolutionEnqueuer, |
15 WorldImpact; | 16 WorldImpact; |
16 import '../tree/tree.dart' show | 17 import '../tree/tree.dart' show |
17 AsyncForIn, | 18 AsyncForIn, |
18 Send; | 19 Send; |
19 import 'registry.dart' show | 20 import 'registry.dart' show |
20 Registry; | 21 Registry; |
21 import 'work.dart' show | 22 import 'work.dart' show |
22 ItemCompilationContext, | 23 ItemCompilationContext, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 88 |
88 /// Registers that a type variable bounds check might occur at runtime. | 89 /// Registers that a type variable bounds check might occur at runtime. |
89 void onTypeVariableBoundCheck(Registry registry) {} | 90 void onTypeVariableBoundCheck(Registry registry) {} |
90 | 91 |
91 /// Register that the application may throw a [NoSuchMethodError]. | 92 /// Register that the application may throw a [NoSuchMethodError]. |
92 void onThrowNoSuchMethod(Registry registry) {} | 93 void onThrowNoSuchMethod(Registry registry) {} |
93 | 94 |
94 /// Register that the application may throw a [RuntimeError]. | 95 /// Register that the application may throw a [RuntimeError]. |
95 void onThrowRuntimeError(Registry registry) {} | 96 void onThrowRuntimeError(Registry registry) {} |
96 | 97 |
| 98 /// Register that the application has a compile time error. |
| 99 void onCompileTimeError(Registry registry, ErroneousElement error) {} |
| 100 |
97 /// Register that the application may throw an | 101 /// Register that the application may throw an |
98 /// [AbstractClassInstantiationError]. | 102 /// [AbstractClassInstantiationError]. |
99 void onAbstractClassInstantiation(Registry registry) {} | 103 void onAbstractClassInstantiation(Registry registry) {} |
100 | 104 |
101 /// Register that the application may throw a [FallThroughError]. | 105 /// Register that the application may throw a [FallThroughError]. |
102 void onFallThroughError(Registry registry) {} | 106 void onFallThroughError(Registry registry) {} |
103 | 107 |
104 /// Register that a super call will end up calling | 108 /// Register that a super call will end up calling |
105 /// [: super.noSuchMethod :]. | 109 /// [: super.noSuchMethod :]. |
106 void onSuperNoSuchMethod(Registry registry) {} | 110 void onSuperNoSuchMethod(Registry registry) {} |
107 | 111 |
108 /// Register that the application creates a constant map. | 112 /// Register that the application creates a constant map. |
109 void onMapLiteral(Registry registry, DartType type, bool isConstant) {} | 113 void onMapLiteral(Registry registry, DartType type, bool isConstant) {} |
110 | 114 |
111 /// Called when resolving the `Symbol` constructor. | 115 /// Called when resolving the `Symbol` constructor. |
112 void onSymbolConstructor(Registry registry) {} | 116 void onSymbolConstructor(Registry registry) {} |
113 } | 117 } |
OLD | NEW |