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 /** | 5 /** |
6 * This library is capable of producing linked summaries from unlinked | 6 * This library is capable of producing linked summaries from unlinked |
7 * ones (or prelinked ones). It functions by building a miniature | 7 * ones (or prelinked ones). It functions by building a miniature |
8 * element model to represent the contents of the summaries, and then | 8 * element model to represent the contents of the summaries, and then |
9 * scanning the element model to gather linked information and adding | 9 * scanning the element model to gather linked information and adding |
10 * it to the summary data structures. | 10 * it to the summary data structures. |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 return result; | 240 return result; |
241 } | 241 } |
242 // TODO(paulberry): implement other cases. | 242 // TODO(paulberry): implement other cases. |
243 throw new UnimplementedError('${element.runtimeType}'); | 243 throw new UnimplementedError('${element.runtimeType}'); |
244 } | 244 } |
245 // TODO(paulberry): implement other cases. | 245 // TODO(paulberry): implement other cases. |
246 throw new UnimplementedError('${type.runtimeType}'); | 246 throw new UnimplementedError('${type.runtimeType}'); |
247 } | 247 } |
248 | 248 |
249 DartType _dynamicIfNull(DartType type) { | 249 DartType _dynamicIfNull(DartType type) { |
250 if (type == null || type.isBottom || type.isDartCoreNull || type.isVoid) { | 250 if (type == null || type.isBottom || type.isDartCoreNull) { |
251 return DynamicTypeImpl.instance; | 251 return DynamicTypeImpl.instance; |
252 } | 252 } |
253 return type; | 253 return type; |
254 } | 254 } |
255 | 255 |
256 /** | 256 /** |
257 * Create an [UnlinkedParam] representing the given [parameter], which should be | 257 * Create an [UnlinkedParam] representing the given [parameter], which should be |
258 * a parameter of a synthetic function type (e.g. one produced during type | 258 * a parameter of a synthetic function type (e.g. one produced during type |
259 * inference as a result of computing the least upper bound of two function | 259 * inference as a result of computing the least upper bound of two function |
260 * types). | 260 * types). |
(...skipping 4709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4970 * there are no type parameters in scope. | 4970 * there are no type parameters in scope. |
4971 */ | 4971 */ |
4972 TypeParameterizedElementMixin get _typeParameterContext; | 4972 TypeParameterizedElementMixin get _typeParameterContext; |
4973 | 4973 |
4974 @override | 4974 @override |
4975 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 4975 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
4976 | 4976 |
4977 @override | 4977 @override |
4978 String toString() => '$enclosingElement.$name'; | 4978 String toString() => '$enclosingElement.$name'; |
4979 } | 4979 } |
OLD | NEW |