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

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

Issue 172923002: [polymer] fix editor hints -- query/queryAll and unused imports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/lib/src/build/code_extractor.dart ('k') | pkg/polymer/lib/src/build/runner.dart » ('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 b553ff0a16d5d44a3e594f062c3555555a83535c..ea7ac6f95022027cad96434774fdff845d941de0 100644
--- a/pkg/polymer/lib/src/build/linter.dart
+++ b/pkg/polymer/lib/src/build/linter.dart
@@ -8,10 +8,7 @@
*/
library polymer.src.build.linter;
-import 'dart:io';
import 'dart:async';
-import 'dart:mirrors';
-import 'dart:convert' show JSON;
import 'package:barback/barback.dart';
import 'package:html5lib/dom.dart';
@@ -79,7 +76,7 @@ class Linter extends Transformer with PolymerTransformer {
Document document, AssetId sourceId, Transform transform) {
var importIds = [];
var logger = transform.logger;
- for (var tag in document.queryAll('link')) {
+ for (var tag in document.querySelectorAll('link')) {
if (tag.attributes['rel'] != 'import') continue;
var href = tag.attributes['href'];
var span = tag.sourceSpan;
@@ -99,7 +96,7 @@ class Linter extends Transformer with PolymerTransformer {
void _addElements(Document document, TransformLogger logger,
Map<String, _ElementSummary> elements) {
- for (var tag in document.queryAll('polymer-element')) {
+ for (var tag in document.querySelectorAll('polymer-element')) {
var name = tag.attributes['name'];
if (name == null) continue;
var extendsTag = tag.attributes['extends'];
« no previous file with comments | « pkg/polymer/lib/src/build/code_extractor.dart ('k') | pkg/polymer/lib/src/build/runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698