OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 analyzer.src.generated.sdk2; | 5 library analyzer.src.generated.sdk2; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:io' as io; | 9 import 'dart:io' as io; |
10 | 10 |
11 import 'package:analyzer/dart/ast/ast.dart'; | 11 import 'package:analyzer/dart/ast/ast.dart'; |
| 12 import 'package:analyzer/exception/exception.dart'; |
12 import 'package:analyzer/file_system/file_system.dart'; | 13 import 'package:analyzer/file_system/file_system.dart'; |
13 import 'package:analyzer/file_system/memory_file_system.dart'; | 14 import 'package:analyzer/file_system/memory_file_system.dart'; |
14 import 'package:analyzer/src/context/context.dart'; | 15 import 'package:analyzer/src/context/context.dart'; |
15 import 'package:analyzer/src/dart/scanner/reader.dart'; | 16 import 'package:analyzer/src/dart/scanner/reader.dart'; |
16 import 'package:analyzer/src/dart/scanner/scanner.dart'; | 17 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
17 import 'package:analyzer/src/generated/engine.dart'; | 18 import 'package:analyzer/src/generated/engine.dart'; |
18 import 'package:analyzer/src/generated/error.dart'; | 19 import 'package:analyzer/src/generated/error.dart'; |
19 import 'package:analyzer/src/generated/java_engine.dart'; | |
20 import 'package:analyzer/src/generated/java_engine_io.dart'; | 20 import 'package:analyzer/src/generated/java_engine_io.dart'; |
21 import 'package:analyzer/src/generated/parser.dart'; | 21 import 'package:analyzer/src/generated/parser.dart'; |
22 import 'package:analyzer/src/generated/sdk.dart'; | 22 import 'package:analyzer/src/generated/sdk.dart'; |
23 import 'package:analyzer/src/generated/source_io.dart'; | 23 import 'package:analyzer/src/generated/source_io.dart'; |
24 import 'package:analyzer/src/summary/idl.dart' show PackageBundle; | 24 import 'package:analyzer/src/summary/idl.dart' show PackageBundle; |
25 import 'package:analyzer/src/summary/summary_sdk.dart'; | 25 import 'package:analyzer/src/summary/summary_sdk.dart'; |
26 import 'package:path/path.dart' as pathos; | 26 import 'package:path/path.dart' as pathos; |
27 import 'package:yaml/yaml.dart'; | 27 import 'package:yaml/yaml.dart'; |
28 | 28 |
29 /** | 29 /** |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 SdkLibrariesReader_LibraryBuilder libraryBuilder = | 866 SdkLibrariesReader_LibraryBuilder libraryBuilder = |
867 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); | 867 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); |
868 // If any syntactic errors were found then don't try to visit the AST | 868 // If any syntactic errors were found then don't try to visit the AST |
869 // structure. | 869 // structure. |
870 if (!errorListener.errorReported) { | 870 if (!errorListener.errorReported) { |
871 unit.accept(libraryBuilder); | 871 unit.accept(libraryBuilder); |
872 } | 872 } |
873 return libraryBuilder.librariesMap; | 873 return libraryBuilder.librariesMap; |
874 } | 874 } |
875 } | 875 } |
OLD | NEW |