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

Unified Diff: lib/src/analyzer.dart

Issue 12225039: Support for observable models, fixes #259 (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 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 | « 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 ecc684e9ccbd1ffeb00c0b9ae70fcd8cc53b1654..bc7ff25f7791b260c99b241cd3f66f45eaa2d439 100644
--- a/lib/src/analyzer.dart
+++ b/lib/src/analyzer.dart
@@ -11,7 +11,7 @@ library analyzer;
import 'package:html5lib/dom.dart';
import 'package:html5lib/dom_parsing.dart';
-import 'directive_parser.dart' show parseDartCode;
+import 'dart_parser.dart';
import 'file_system/path.dart';
import 'files.dart';
import 'html5_utils.dart';
@@ -712,7 +712,7 @@ class _Analyzer extends TreeVisitor {
var path = info.externalFile;
if (path != null) {
info.externalCode = files[path];
- info.userCode = info.externalCode.userCode;
+ info.externalCode.htmlFile = info;
}
}
@@ -953,9 +953,8 @@ 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);
+ var path = _currentInfo.inputPath;
+ _currentInfo.inlinedCode = parseDartCode(path, text.value, _messages);
if (_currentInfo.userCode.partOf != null) {
_messages.error('expected a library, not a part.',
node.sourceSpan, file: _fileInfo.path);
« 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