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

Unified Diff: pkg/compiler/lib/src/universe/selector.dart

Issue 1856713002: Test ResolutionImpact equivalence. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/serialization/task.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/selector.dart
diff --git a/pkg/compiler/lib/src/universe/selector.dart b/pkg/compiler/lib/src/universe/selector.dart
index 014ceefd3af29f9914340252ac9f64f66c959808..8bef9fac0841b3700490c639a300b349dc2579ab 100644
--- a/pkg/compiler/lib/src/universe/selector.dart
+++ b/pkg/compiler/lib/src/universe/selector.dart
@@ -62,18 +62,27 @@ class Selector {
this.memberName,
this.callStructure,
this.hashCode) {
- assert(kind == SelectorKind.INDEX ||
- (memberName != Names.INDEX_NAME &&
- memberName != Names.INDEX_SET_NAME));
- assert(kind == SelectorKind.OPERATOR ||
- kind == SelectorKind.INDEX ||
- !Elements.isOperatorName(memberName.text) ||
- identical(memberName.text, '??'));
- assert(kind == SelectorKind.CALL ||
- kind == SelectorKind.GETTER ||
- kind == SelectorKind.SETTER ||
- Elements.isOperatorName(memberName.text) ||
- identical(memberName.text, '??'));
+ assert(invariant(NO_LOCATION_SPANNABLE,
+ kind == SelectorKind.INDEX ||
+ (memberName != Names.INDEX_NAME &&
+ memberName != Names.INDEX_SET_NAME),
+ message: "kind=$kind,memberName=$memberName,"
+ "callStructure:$callStructure"));
+ assert(invariant(NO_LOCATION_SPANNABLE,
+ kind == SelectorKind.OPERATOR ||
+ kind == SelectorKind.INDEX ||
+ !Elements.isOperatorName(memberName.text) ||
+ memberName.text == '??',
+ message: "kind=$kind,memberName=$memberName,"
+ "callStructure:$callStructure"));
+ assert(invariant(NO_LOCATION_SPANNABLE,
+ kind == SelectorKind.CALL ||
+ kind == SelectorKind.GETTER ||
+ kind == SelectorKind.SETTER ||
+ Elements.isOperatorName(memberName.text) ||
+ memberName.text == '??',
+ message: "kind=$kind,memberName=$memberName,"
+ "callStructure:$callStructure"));
}
// TODO(johnniwinther): Extract caching.
« no previous file with comments | « pkg/compiler/lib/src/serialization/task.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698