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

Unified Diff: pkg/polymer/lib/src/build/linter.dart

Issue 783393005: fix logic for detecting when in an auto-binding element (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years 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/CHANGELOG.md ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/linter.dart
diff --git a/pkg/polymer/lib/src/build/linter.dart b/pkg/polymer/lib/src/build/linter.dart
index 39cea9b71101b48793787589c62e7a6fe52a2e18..303b020286228c6d8356f8edcaa34c54e9fe4e2d 100644
--- a/pkg/polymer/lib/src/build/linter.dart
+++ b/pkg/polymer/lib/src/build/linter.dart
@@ -195,12 +195,13 @@ class _LinterVisitor extends TreeVisitor {
case 'script': _validateScriptElement(node); break;
case 'template':
var isTag = node.attributes['is'];
+ var oldInAutoBindingElement = _inAutoBindingElement;
if (isTag != null && AUTO_BINDING_ELEMENTS.contains(isTag)) {
_inAutoBindingElement = true;
}
_validateNormalElement(node);
super.visitElement(node);
- _inAutoBindingElement = false;
+ _inAutoBindingElement = oldInAutoBindingElement;
break;
default:
_validateNormalElement(node);
« no previous file with comments | « pkg/polymer/CHANGELOG.md ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698