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

Side by Side Diff: dart/tests/compiler/dart2js/parser_helper.dart

Issue 341923005: Update imports to use package:compiler and package:try. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r37512. Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library parser_helper; 5 library parser_helper;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 import "../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t"; 9 import "package:compiler/implementation/elements/elements.dart";
10 import "../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart"; 10 import "package:compiler/implementation/tree/tree.dart";
11 import "../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.da rt"; 11 import "package:compiler/implementation/scanner/scannerlib.dart";
12 import "../../../sdk/lib/_internal/compiler/implementation/source_file.dart"; 12 import "package:compiler/implementation/source_file.dart";
13 import "../../../sdk/lib/_internal/compiler/implementation/util/util.dart"; 13 import "package:compiler/implementation/util/util.dart";
14 14
15 import "../../../sdk/lib/_internal/compiler/implementation/elements/modelx.dart" 15 import "package:compiler/implementation/elements/modelx.dart"
16 show CompilationUnitElementX, 16 show CompilationUnitElementX,
17 LibraryElementX; 17 LibraryElementX;
18 18
19 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart"; 19 import "package:compiler/implementation/dart2jslib.dart";
20 20
21 export "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart" 21 export "package:compiler/implementation/dart2jslib.dart"
22 show DiagnosticListener; 22 show DiagnosticListener;
23 // TODO(ahe): We should have token library to export instead. 23 // TODO(ahe): We should have token library to export instead.
24 export "../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.da rt"; 24 export "package:compiler/implementation/scanner/scannerlib.dart";
25 25
26 class LoggerCanceler implements DiagnosticListener { 26 class LoggerCanceler implements DiagnosticListener {
27 void cancel(String reason, {node, token, instruction, element}) { 27 void cancel(String reason, {node, token, instruction, element}) {
28 throw new CompilerCancelledException(reason); 28 throw new CompilerCancelledException(reason);
29 } 29 }
30 30
31 void log(message) { 31 void log(message) {
32 print(message); 32 print(message);
33 } 33 }
34 34
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 ElementListener listener = new ElementListener(compiler, unit, () => id++); 126 ElementListener listener = new ElementListener(compiler, unit, () => id++);
127 PartialParser parser = new PartialParser(listener); 127 PartialParser parser = new PartialParser(listener);
128 compiler.withCurrentElement(unit, () => parser.parseUnit(tokens)); 128 compiler.withCurrentElement(unit, () => parser.parseUnit(tokens));
129 return unit.localMembers; 129 return unit.localMembers;
130 } 130 }
131 131
132 NodeList fullParseUnit(String source, {DiagnosticListener diagnosticHandler}) { 132 NodeList fullParseUnit(String source, {DiagnosticListener diagnosticHandler}) {
133 return parseBodyCode(source, (parser, tokens) => parser.parseUnit(tokens), 133 return parseBodyCode(source, (parser, tokens) => parser.parseUnit(tokens),
134 diagnosticHandler: diagnosticHandler); 134 diagnosticHandler: diagnosticHandler);
135 } 135 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js/package_root_test.dart ('k') | dart/tests/compiler/dart2js/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698