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

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

Issue 1286143003: Move diagnostic_listener.dart and messages.dart to the diagnostics folder (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/closure.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:package_config/packages.dart'; 10 import 'package:package_config/packages.dart';
11 import 'package:package_config/packages_file.dart' as pkgs; 11 import 'package:package_config/packages_file.dart' as pkgs;
12 import 'package:package_config/src/packages_impl.dart' show 12 import 'package:package_config/src/packages_impl.dart' show
13 MapPackages, 13 MapPackages,
14 NonFilePackagesDirectoryPackages; 14 NonFilePackagesDirectoryPackages;
15 import 'package:package_config/src/util.dart' show 15 import 'package:package_config/src/util.dart' show
16 checkValidPackageUri; 16 checkValidPackageUri;
17 import 'package:sdk_library_metadata/libraries.dart' hide LIBRARIES; 17 import 'package:sdk_library_metadata/libraries.dart' hide LIBRARIES;
18 import 'package:sdk_library_metadata/libraries.dart' as library_info show 18 import 'package:sdk_library_metadata/libraries.dart' as library_info show
19 LIBRARIES; 19 LIBRARIES;
20 20
21 import '../compiler_new.dart' as api; 21 import '../compiler_new.dart' as api;
22 import 'common/tasks.dart' show 22 import 'common/tasks.dart' show
23 GenericTask; 23 GenericTask;
24 import 'compiler.dart' as leg; 24 import 'compiler.dart' as leg;
25 import 'diagnostics/messages.dart';
25 import 'diagnostics/source_span.dart' show 26 import 'diagnostics/source_span.dart' show
26 SourceSpan; 27 SourceSpan;
27 import 'diagnostics/spannable.dart' show 28 import 'diagnostics/spannable.dart' show
28 NO_LOCATION_SPANNABLE, 29 NO_LOCATION_SPANNABLE,
29 Spannable; 30 Spannable;
30 import 'elements/elements.dart' as elements; 31 import 'elements/elements.dart' as elements;
31 import 'io/source_file.dart'; 32 import 'io/source_file.dart';
32 import 'messages.dart';
33 import 'script.dart'; 33 import 'script.dart';
34 import 'tree/tree.dart' as tree; 34 import 'tree/tree.dart' as tree;
35 35
36 const bool forceIncrementalSupport = 36 const bool forceIncrementalSupport =
37 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); 37 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT');
38 38
39 class Compiler extends leg.Compiler { 39 class Compiler extends leg.Compiler {
40 api.CompilerInput provider; 40 api.CompilerInput provider;
41 api.CompilerDiagnostics handler; 41 api.CompilerDiagnostics handler;
42 final Uri libraryRoot; 42 final Uri libraryRoot;
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 print('$message: ${tryToString(exception)}'); 491 print('$message: ${tryToString(exception)}');
492 print(tryToString(stackTrace)); 492 print(tryToString(stackTrace));
493 } 493 }
494 494
495 fromEnvironment(String name) => environment[name]; 495 fromEnvironment(String name) => environment[name];
496 496
497 LibraryInfo lookupLibraryInfo(String libraryName) { 497 LibraryInfo lookupLibraryInfo(String libraryName) {
498 return library_info.LIBRARIES[libraryName]; 498 return library_info.LIBRARIES[libraryName];
499 } 499 }
500 } 500 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698