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

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

Issue 1151163004: Implementation of null-aware operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/typechecker.dart ('k') | pkg/compiler/lib/src/warnings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/universe.dart
diff --git a/pkg/compiler/lib/src/universe/universe.dart b/pkg/compiler/lib/src/universe/universe.dart
index efa10aab43ca13e9dc458c0a9a50405cb35f7059..0722c0fe164bdc1c34dd70ac437b8fb1b66f27f5 100644
--- a/pkg/compiler/lib/src/universe/universe.dart
+++ b/pkg/compiler/lib/src/universe/universe.dart
@@ -544,11 +544,13 @@ class Selector {
(memberName != INDEX_NAME && memberName != INDEX_SET_NAME));
assert(kind == SelectorKind.OPERATOR ||
kind == SelectorKind.INDEX ||
- !Elements.isOperatorName(memberName.text));
+ !Elements.isOperatorName(memberName.text) ||
+ identical(memberName.text, '??'));
assert(kind == SelectorKind.CALL ||
kind == SelectorKind.GETTER ||
kind == SelectorKind.SETTER ||
- Elements.isOperatorName(memberName.text));
+ Elements.isOperatorName(memberName.text) ||
+ identical(memberName.text, '??'));
}
// TODO(johnniwinther): Extract caching.
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | pkg/compiler/lib/src/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698