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

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

Issue 1325843003: Add optional message to assert in Dart2js. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Reintroduce assertHelper for asserts without messages. 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 24 matching lines...) Expand all
35 WorldImpact impact = compiler.analyze(this, world); 35 WorldImpact impact = compiler.analyze(this, world);
36 _isAnalyzed = true; 36 _isAnalyzed = true;
37 return impact; 37 return impact;
38 } 38 }
39 39
40 bool get isAnalyzed => _isAnalyzed; 40 bool get isAnalyzed => _isAnalyzed;
41 } 41 }
42 42
43 /// Backend callbacks function specific to the resolution phase. 43 /// Backend callbacks function specific to the resolution phase.
44 class ResolutionCallbacks { 44 class ResolutionCallbacks {
45 /// Register that [node] is a call to `assert`. 45 /// Register that an assert has been seen.
46 void onAssert(Send node, Registry registry) {} 46 void onAssert(Registry registry) {}
47 47
48 /// Register that an 'await for' has been seen. 48 /// Register that an 'await for' has been seen.
49 void onAsyncForIn(AsyncForIn node, Registry registry) {} 49 void onAsyncForIn(AsyncForIn node, Registry registry) {}
50 50
51 /// Called during resolution to notify to the backend that the 51 /// Called during resolution to notify to the backend that the
52 /// program uses string interpolation. 52 /// program uses string interpolation.
53 void onStringInterpolation(Registry registry) {} 53 void onStringInterpolation(Registry registry) {}
54 54
55 /// Called during resolution to notify to the backend that the 55 /// Called during resolution to notify to the backend that the
56 /// program has a catch statement. 56 /// program has a catch statement.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 /// Register that a super call will end up calling 108 /// Register that a super call will end up calling
109 /// [: super.noSuchMethod :]. 109 /// [: super.noSuchMethod :].
110 void onSuperNoSuchMethod(Registry registry) {} 110 void onSuperNoSuchMethod(Registry registry) {}
111 111
112 /// Register that the application creates a constant map. 112 /// Register that the application creates a constant map.
113 void onMapLiteral(Registry registry, DartType type, bool isConstant) {} 113 void onMapLiteral(Registry registry, DartType type, bool isConstant) {}
114 114
115 /// Called when resolving the `Symbol` constructor. 115 /// Called when resolving the `Symbol` constructor.
116 void onSymbolConstructor(Registry registry) {} 116 void onSymbolConstructor(Registry registry) {}
117 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698