Index: lib/src/analyzer.dart |
diff --git a/lib/src/analyzer.dart b/lib/src/analyzer.dart |
index cadb59c9f577384aff1a6dc5d156c30ac0f145ef..faf79b030c444d909d88d16199c7dc3394e85498 100644 |
--- a/lib/src/analyzer.dart |
+++ b/lib/src/analyzer.dart |
@@ -697,6 +697,7 @@ class _Analyzer extends TreeVisitor { |
var path = info.externalFile; |
if (path != null) { |
info.externalCode = files[path]; |
+ info.externalCode.htmlFile = info; |
info.userCode = info.externalCode.userCode; |
} |
} |
@@ -868,7 +869,7 @@ class _ElementLoader extends TreeVisitor { |
if (scriptType != 'application/dart') return; |
- var src = node.attributes["src"]; |
+ var src = node.attributes['src']; |
if (src != null) { |
if (!src.endsWith('.dart')) { |
_messages.warning('"application/dart" scripts should ' |
@@ -911,7 +912,6 @@ class _ElementLoader extends TreeVisitor { |
' HTML pages that define components, but are not the entry HTML ' |
'file.', node.sourceSpan, file: _fileInfo.path); |
} else { |
- _currentInfo.inlinedCode = text.value; |
_currentInfo.userCode = parseDartCode(text.value, |
_currentInfo.inputPath, messages:_messages); |
if (_currentInfo.userCode.partOf != null) { |