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

Side by Side Diff: pkg/compiler/lib/src/apiimpl.dart

Issue 830703004: Emit to StreamCodeOutput instead of CodeBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 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 leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../compiler.dart' as api; 9 import '../compiler.dart' as api;
10 import 'dart2jslib.dart' as leg; 10 import 'dart2jslib.dart' as leg;
11 import 'tree/tree.dart' as tree; 11 import 'tree/tree.dart' as tree;
12 import 'elements/elements.dart' as elements; 12 import 'elements/elements.dart' as elements;
13 import 'package:_internal/libraries.dart' hide LIBRARIES; 13 import 'package:_internal/libraries.dart' hide LIBRARIES;
14 import 'package:_internal/libraries.dart' as library_info show LIBRARIES; 14 import 'package:_internal/libraries.dart' as library_info show LIBRARIES;
15 import 'source_file.dart'; 15 import 'io/source_file.dart';
16 16
17 const bool forceIncrementalSupport = 17 const bool forceIncrementalSupport =
18 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); 18 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT');
19 19
20 class Compiler extends leg.Compiler { 20 class Compiler extends leg.Compiler {
21 api.CompilerInputProvider provider; 21 api.CompilerInputProvider provider;
22 api.DiagnosticHandler handler; 22 api.DiagnosticHandler handler;
23 final Uri libraryRoot; 23 final Uri libraryRoot;
24 final Uri packageRoot; 24 final Uri packageRoot;
25 List<String> options; 25 List<String> options;
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 print('$message: ${tryToString(exception)}'); 384 print('$message: ${tryToString(exception)}');
385 print(tryToString(stackTrace)); 385 print(tryToString(stackTrace));
386 } 386 }
387 387
388 fromEnvironment(String name) => environment[name]; 388 fromEnvironment(String name) => environment[name];
389 389
390 LibraryInfo lookupLibraryInfo(String libraryName) { 390 LibraryInfo lookupLibraryInfo(String libraryName) {
391 return library_info.LIBRARIES[libraryName]; 391 return library_info.LIBRARIES[libraryName];
392 } 392 }
393 } 393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698