| 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'; |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 // Fall through to return the default. | 407 // Fall through to return the default. |
| 408 } | 408 } |
| 409 } | 409 } |
| 410 return _sdkVersion; | 410 return _sdkVersion; |
| 411 } | 411 } |
| 412 | 412 |
| 413 @override | 413 @override |
| 414 List<String> get uris => _libraryMap.uris; | 414 List<String> get uris => _libraryMap.uris; |
| 415 | 415 |
| 416 /** | 416 /** |
| 417 * Whether an SDK summary should be used. |
| 418 */ |
| 419 bool get useSummary => _useSummary; |
| 420 |
| 421 /** |
| 417 * Specify whether SDK summary should be used. | 422 * Specify whether SDK summary should be used. |
| 418 */ | 423 */ |
| 419 void set useSummary(bool use) { | 424 void set useSummary(bool use) { |
| 420 if (_analysisContext != null) { | 425 if (_analysisContext != null) { |
| 421 throw new StateError( | 426 throw new StateError( |
| 422 'The "useSummary" flag cannot be changed after context creation.'); | 427 'The "useSummary" flag cannot be changed after context creation.'); |
| 423 } | 428 } |
| 424 _useSummary = use; | 429 _useSummary = use; |
| 425 } | 430 } |
| 426 | 431 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 SdkLibrariesReader_LibraryBuilder libraryBuilder = | 688 SdkLibrariesReader_LibraryBuilder libraryBuilder = |
| 684 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); | 689 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); |
| 685 // If any syntactic errors were found then don't try to visit the AST | 690 // If any syntactic errors were found then don't try to visit the AST |
| 686 // structure. | 691 // structure. |
| 687 if (!errorListener.errorReported) { | 692 if (!errorListener.errorReported) { |
| 688 unit.accept(libraryBuilder); | 693 unit.accept(libraryBuilder); |
| 689 } | 694 } |
| 690 return libraryBuilder.librariesMap; | 695 return libraryBuilder.librariesMap; |
| 691 } | 696 } |
| 692 } | 697 } |
| OLD | NEW |