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

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

Issue 335943003: merge to trunk all changes from 36817 until 37378 under the packages: polymer, (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
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
« no previous file with comments | « pkg/polymer_expressions/lib/polymer_expressions.dart ('k') | pkg/polymer_expressions/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer_expressions/lib/tokenizer.dart
===================================================================
--- pkg/polymer_expressions/lib/tokenizer.dart (revision 37373)
+++ 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 | « pkg/polymer_expressions/lib/polymer_expressions.dart ('k') | pkg/polymer_expressions/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698