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

Unified Diff: lib/src/analyzer.dart

Issue 12096106: work in progress: observable implementation using detailed change records (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 years, 11 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/observe/set.dart ('k') | lib/src/codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « lib/observe/set.dart ('k') | lib/src/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698