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

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

Issue 1346093003: Revert "Add optional message to assert in Dart2js - continued" (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;
(...skipping 25 matching lines...) Expand all
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 an assert has been seen. 46 /// Register that [node] is a call to `assert`.
47 void onAssert(bool hasMessage, Registry registry) {} 47 void onAssert(Send node, 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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/registry.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698