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

Unified Diff: dart/pkg/polymer_expressions/lib/tokenizer.dart

Issue 336013003: Version 1.5.0-dev.4.14 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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
Index: dart/pkg/polymer_expressions/lib/tokenizer.dart
===================================================================
--- dart/pkg/polymer_expressions/lib/tokenizer.dart (revision 37358)
+++ dart/pkg/polymer_expressions/lib/tokenizer.dart (working copy)
@@ -78,6 +78,8 @@
// equality
'!=': 7,
'==': 7,
+ '!==': 7,
+ '===': 7,
// relational
'>=': 8,
@@ -278,6 +280,11 @@
if (_TWO_CHAR_OPS.contains(op2)) {
op = op2;
_advance();
+ // kind of hacky check for === and !===, could be better / more general
+ if (_next == _EQ && (startChar == _BANG || startChar == _EQ)) {
+ op = op2 + '=';
+ _advance();
+ }
} else {
op = new String.fromCharCode(startChar);
}
« no previous file with comments | « dart/pkg/polymer_expressions/lib/polymer_expressions.dart ('k') | dart/pkg/polymer_expressions/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698