| 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/type.dart'; | 11 import 'package:analyzer/src/dart/element/type.dart'; |
| 12 import 'package:analyzer/src/generated/constant.dart'; | 12 import 'package:analyzer/src/generated/constant.dart'; |
| 13 import 'package:analyzer/src/generated/engine.dart'; | 13 import 'package:analyzer/src/generated/engine.dart'; |
| 14 import 'package:analyzer/src/generated/resolver.dart'; | 14 import 'package:analyzer/src/generated/resolver.dart'; |
| 15 import 'package:analyzer/src/generated/source.dart' | 15 import 'package:analyzer/src/generated/source.dart' |
| 16 show DartUriResolver, Source, SourceFactory, SourceKind; | 16 show DartUriResolver, Source, SourceFactory, SourceKind; |
| 17 import 'package:analyzer/src/summary/format.dart'; | 17 import 'package:analyzer/src/summary/idl.dart'; |
| 18 import 'package:analyzer/src/summary/resynthesize.dart'; | 18 import 'package:analyzer/src/summary/resynthesize.dart'; |
| 19 import 'package:analyzer/src/task/dart.dart' | 19 import 'package:analyzer/src/task/dart.dart' |
| 20 show | 20 show |
| 21 CONSTANT_VALUE, | 21 CONSTANT_VALUE, |
| 22 LIBRARY_ELEMENT1, | 22 LIBRARY_ELEMENT1, |
| 23 LIBRARY_ELEMENT2, | 23 LIBRARY_ELEMENT2, |
| 24 LIBRARY_ELEMENT3, | 24 LIBRARY_ELEMENT3, |
| 25 LIBRARY_ELEMENT4, | 25 LIBRARY_ELEMENT4, |
| 26 LIBRARY_ELEMENT5, | 26 LIBRARY_ELEMENT5, |
| 27 LIBRARY_ELEMENT6, | 27 LIBRARY_ELEMENT6, |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 * throw a [StateError] if there is no class with the given name. | 403 * throw a [StateError] if there is no class with the given name. |
| 404 */ | 404 */ |
| 405 InterfaceType _getType(LibraryElement library, String name) { | 405 InterfaceType _getType(LibraryElement library, String name) { |
| 406 Element element = library.getType(name); | 406 Element element = library.getType(name); |
| 407 if (element == null) { | 407 if (element == null) { |
| 408 throw new StateError("No definition of type $name"); | 408 throw new StateError("No definition of type $name"); |
| 409 } | 409 } |
| 410 return (element as ClassElement).type; | 410 return (element as ClassElement).type; |
| 411 } | 411 } |
| 412 } | 412 } |
| OLD | NEW |