| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.summary.summary_sdk; | 5 library analyzer.src.summary.summary_sdk; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
| 8 import 'package:analyzer/dart/element/type.dart'; | 8 import 'package:analyzer/dart/element/type.dart'; |
| 9 import 'package:analyzer/src/context/cache.dart' show CacheEntry; | 9 import 'package:analyzer/src/context/cache.dart' show CacheEntry; |
| 10 import 'package:analyzer/src/context/context.dart'; | 10 import 'package:analyzer/src/context/context.dart'; |
| 11 import 'package:analyzer/src/dart/element/element.dart'; | 11 import 'package:analyzer/src/dart/element/element.dart'; |
| 12 import 'package:analyzer/src/dart/element/type.dart'; | 12 import 'package:analyzer/src/dart/element/type.dart'; |
| 13 import 'package:analyzer/src/generated/constant.dart'; | 13 import 'package:analyzer/src/generated/constant.dart'; |
| 14 import 'package:analyzer/src/generated/engine.dart'; | 14 import 'package:analyzer/src/generated/engine.dart'; |
| 15 import 'package:analyzer/src/generated/resolver.dart'; | 15 import 'package:analyzer/src/generated/resolver.dart'; |
| 16 import 'package:analyzer/src/generated/source.dart' | 16 import 'package:analyzer/src/generated/source.dart' |
| 17 show DartUriResolver, Source, SourceFactory, SourceKind; | 17 show Source, SourceFactory, SourceKind; |
| 18 import 'package:analyzer/src/summary/idl.dart'; | 18 import 'package:analyzer/src/summary/idl.dart'; |
| 19 import 'package:analyzer/src/summary/resynthesize.dart'; | 19 import 'package:analyzer/src/summary/resynthesize.dart'; |
| 20 import 'package:analyzer/src/task/dart.dart'; | 20 import 'package:analyzer/src/task/dart.dart'; |
| 21 import 'package:analyzer/task/dart.dart'; | 21 import 'package:analyzer/task/dart.dart'; |
| 22 import 'package:analyzer/task/model.dart' | 22 import 'package:analyzer/task/model.dart' |
| 23 show AnalysisTarget, ResultDescriptor, TargetedResult; | 23 show AnalysisTarget, ResultDescriptor, TargetedResult; |
| 24 | 24 |
| 25 class SdkSummaryResultProvider implements SummaryResultProvider { | 25 class SdkSummaryResultProvider implements SummaryResultProvider { |
| 26 final InternalAnalysisContext context; | 26 final InternalAnalysisContext context; |
| 27 final PackageBundle bundle; | 27 final PackageBundle bundle; |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 * throw a [StateError] if there is no class with the given name. | 419 * throw a [StateError] if there is no class with the given name. |
| 420 */ | 420 */ |
| 421 InterfaceType _getType(LibraryElement library, String name) { | 421 InterfaceType _getType(LibraryElement library, String name) { |
| 422 Element element = library.getType(name); | 422 Element element = library.getType(name); |
| 423 if (element == null) { | 423 if (element == null) { |
| 424 throw new StateError("No definition of type $name"); | 424 throw new StateError("No definition of type $name"); |
| 425 } | 425 } |
| 426 return (element as ClassElement).type; | 426 return (element as ClassElement).type; |
| 427 } | 427 } |
| 428 } | 428 } |
| OLD | NEW |