| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.sdk_io; | 5 library analyzer.src.generated.sdk_io; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| 11 import 'package:analyzer/src/context/context.dart'; | 11 import 'package:analyzer/src/context/context.dart'; |
| 12 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
| 13 import 'package:analyzer/src/generated/error.dart'; | 13 import 'package:analyzer/src/generated/error.dart'; |
| 14 import 'package:analyzer/src/generated/java_core.dart'; | 14 import 'package:analyzer/src/generated/java_core.dart'; |
| 15 import 'package:analyzer/src/generated/java_engine.dart'; | 15 import 'package:analyzer/src/generated/java_engine.dart'; |
| 16 import 'package:analyzer/src/generated/java_engine_io.dart'; | 16 import 'package:analyzer/src/generated/java_engine_io.dart'; |
| 17 import 'package:analyzer/src/generated/java_io.dart'; | 17 import 'package:analyzer/src/generated/java_io.dart'; |
| 18 import 'package:analyzer/src/generated/parser.dart'; | 18 import 'package:analyzer/src/generated/parser.dart'; |
| 19 import 'package:analyzer/src/generated/scanner.dart'; | 19 import 'package:analyzer/src/generated/scanner.dart'; |
| 20 import 'package:analyzer/src/generated/sdk.dart'; | 20 import 'package:analyzer/src/generated/sdk.dart'; |
| 21 import 'package:analyzer/src/generated/source_io.dart'; | 21 import 'package:analyzer/src/generated/source_io.dart'; |
| 22 import 'package:analyzer/src/summary/format.dart' show SdkBundle; | 22 import 'package:analyzer/src/summary/idl.dart' show SdkBundle; |
| 23 import 'package:analyzer/src/summary/summary_sdk.dart'; | 23 import 'package:analyzer/src/summary/summary_sdk.dart'; |
| 24 import 'package:path/path.dart' as pathos; | 24 import 'package:path/path.dart' as pathos; |
| 25 | 25 |
| 26 /** | 26 /** |
| 27 * A Dart SDK installed in a specified directory. Typical Dart SDK layout is | 27 * A Dart SDK installed in a specified directory. Typical Dart SDK layout is |
| 28 * something like... | 28 * something like... |
| 29 * | 29 * |
| 30 * dart-sdk/ | 30 * dart-sdk/ |
| 31 * bin/ | 31 * bin/ |
| 32 * dart[.exe] <-- VM | 32 * dart[.exe] <-- VM |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 SdkLibrariesReader_LibraryBuilder libraryBuilder = | 644 SdkLibrariesReader_LibraryBuilder libraryBuilder = |
| 645 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); | 645 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); |
| 646 // If any syntactic errors were found then don't try to visit the AST | 646 // If any syntactic errors were found then don't try to visit the AST |
| 647 // structure. | 647 // structure. |
| 648 if (!errorListener.errorReported) { | 648 if (!errorListener.errorReported) { |
| 649 unit.accept(libraryBuilder); | 649 unit.accept(libraryBuilder); |
| 650 } | 650 } |
| 651 return libraryBuilder.librariesMap; | 651 return libraryBuilder.librariesMap; |
| 652 } | 652 } |
| 653 } | 653 } |
| OLD | NEW |