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

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
Index: lib/src/analyzer.dart
diff --git a/lib/src/analyzer.dart b/lib/src/analyzer.dart
index ecc684e9ccbd1ffeb00c0b9ae70fcd8cc53b1654..dc29323ba9708de4728b793aae9e457a4a10c27e 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,6 +712,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;
}
}
@@ -953,9 +954,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.userCode = parseDartCode(path, text.value, _messages);
if (_currentInfo.userCode.partOf != null) {
_messages.error('expected a library, not a part.',
node.sourceSpan, file: _fileInfo.path);

Powered by Google App Engine
This is Rietveld 408576698