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

Unified Diff: lib/src/server/dependency_graph.dart

Issue 1245013002: some fixes for --strong warnings (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 | « lib/src/report.dart ('k') | lib/src/utils.dart » ('j') | lib/src/utils.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/server/dependency_graph.dart
diff --git a/lib/src/server/dependency_graph.dart b/lib/src/server/dependency_graph.dart
index dee7fa511018aef60a74434f68b7770f225054c8..055dc01ec72f313e933662a9d94b67c5e3ccf0ba 100644
--- a/lib/src/server/dependency_graph.dart
+++ b/lib/src/server/dependency_graph.dart
@@ -202,7 +202,7 @@ class HtmlSourceNode extends SourceNode {
script);
continue;
}
- var node = graph.nodeFromUri(uri.resolve(src));
+ DartSourceNode node = graph.nodeFromUri(uri.resolve(src));
if (node == null || !node.source.exists()) {
_reportError(graph, 'Script file $src not found', script);
}
@@ -224,12 +224,14 @@ class HtmlSourceNode extends SourceNode {
newResources.add(graph.nodeFromUri(uri.resolve(resource)));
}
for (var tag in document.querySelectorAll('link[rel="stylesheet"]')) {
- var res = graph.nodeFromUri(uri.resolve(tag.attributes['href']));
+ ResourceSourceNode res =
+ graph.nodeFromUri(uri.resolve(tag.attributes['href']));
htmlResourceNodes[tag] = res;
newResources.add(res);
}
for (var tag in document.querySelectorAll('img[src]')) {
- var res = graph.nodeFromUri(uri.resolve(tag.attributes['src']));
+ ResourceSourceNode res =
+ graph.nodeFromUri(uri.resolve(tag.attributes['src']));
htmlResourceNodes[tag] = res;
newResources.add(res);
}
@@ -316,7 +318,7 @@ class DartSourceNode extends SourceNode {
: uri.resolve(directiveUri.stringValue);
var target =
ParseDartTask.resolveDirective(graph._context, _source, d, null);
- var node = graph.nodes.putIfAbsent(
+ DartSourceNode node = graph.nodes.putIfAbsent(
targetUri, () => new DartSourceNode(graph, targetUri, target));
//var node = graph.nodeFromUri(targetUri);
if (node._source == null || !node._source.exists()) {
« no previous file with comments | « lib/src/report.dart ('k') | lib/src/utils.dart » ('j') | lib/src/utils.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698