| 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 4389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4400 */ | 4400 */ |
| 4401 DartType get asStaticType => DynamicTypeImpl.instance; | 4401 DartType get asStaticType => DynamicTypeImpl.instance; |
| 4402 | 4402 |
| 4403 /** | 4403 /** |
| 4404 * If this element can be used in a getter context as a type inference | 4404 * If this element can be used in a getter context as a type inference |
| 4405 * dependency, return the [TypeInferenceNode] for the inferred type. | 4405 * dependency, return the [TypeInferenceNode] for the inferred type. |
| 4406 * Otherwise return `null`. | 4406 * Otherwise return `null`. |
| 4407 */ | 4407 */ |
| 4408 TypeInferenceNode get asTypeInferenceNode => null; | 4408 TypeInferenceNode get asTypeInferenceNode => null; |
| 4409 | 4409 |
| 4410 @override |
| 4411 ElementLocation get location => new ElementLocationImpl.con1(this); |
| 4412 |
| 4410 /** | 4413 /** |
| 4411 * Return the type indicated by this element when it is used in a | 4414 * Return the type indicated by this element when it is used in a |
| 4412 * type instantiation context. If this element can't legally be | 4415 * type instantiation context. If this element can't legally be |
| 4413 * instantiated as a type, return the dynamic type. | 4416 * instantiated as a type, return the dynamic type. |
| 4414 * | 4417 * |
| 4415 * If the type is parameterized, [getTypeArgument] will be called to retrieve | 4418 * If the type is parameterized, [getTypeArgument] will be called to retrieve |
| 4416 * the type parameters. It should return `null` for unspecified type | 4419 * the type parameters. It should return `null` for unspecified type |
| 4417 * parameters. | 4420 * parameters. |
| 4418 */ | 4421 */ |
| 4419 DartType buildType(DartType getTypeArgument(int i), | 4422 DartType buildType(DartType getTypeArgument(int i), |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5006 * there are no type parameters in scope. | 5009 * there are no type parameters in scope. |
| 5007 */ | 5010 */ |
| 5008 TypeParameterizedElementMixin get _typeParameterContext; | 5011 TypeParameterizedElementMixin get _typeParameterContext; |
| 5009 | 5012 |
| 5010 @override | 5013 @override |
| 5011 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 5014 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 5012 | 5015 |
| 5013 @override | 5016 @override |
| 5014 String toString() => '$enclosingElement.$name'; | 5017 String toString() => '$enclosingElement.$name'; |
| 5015 } | 5018 } |
| OLD | NEW |