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

Unified Diff: tests/compiler/dart2js/parser_helper.dart

Issue 10579019: First shot at source maps generation in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix the tests. Created 8 years, 6 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/compiler/implementation/source_map_builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/parser_helper.dart
diff --git a/tests/compiler/dart2js/parser_helper.dart b/tests/compiler/dart2js/parser_helper.dart
index 21d1434678a898b7ad58abbff370191d158a0b79..edf77eda1cebccb4785f9fbeed5fe6a8147bd38f 100644
--- a/tests/compiler/dart2js/parser_helper.dart
+++ b/tests/compiler/dart2js/parser_helper.dart
@@ -10,6 +10,7 @@
#import("../../../lib/compiler/implementation/tree/tree.dart");
#import('../../../lib/compiler/implementation/scanner/scannerlib.dart');
#import("../../../lib/compiler/implementation/leg.dart");
+#import("../../../lib/compiler/implementation/source_file.dart");
#import("../../../lib/compiler/implementation/util/util.dart");
class LoggerCanceler implements DiagnosticListener {
@@ -50,10 +51,9 @@ Node parseFunction(String text, Compiler compiler) {
Node parseMember(String text) =>
parseBodyCode(text, (parser, tokens) => parser.parseMember(tokens));
-class MockFile {
- final filename = '<string>';
- final text;
- MockFile(this.text);
+class MockFile extends SourceFile {
+ MockFile(text)
+ : super('<string>', text);
}
Link<Element> parseUnit(String text, Compiler compiler,
« no previous file with comments | « lib/compiler/implementation/source_map_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698