| 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 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2693 return TokenType.BAR; | 2693 return TokenType.BAR; |
| 2694 case UnlinkedExprAssignOperator.prefixIncrement: | 2694 case UnlinkedExprAssignOperator.prefixIncrement: |
| 2695 return TokenType.PLUS_PLUS; | 2695 return TokenType.PLUS_PLUS; |
| 2696 case UnlinkedExprAssignOperator.prefixDecrement: | 2696 case UnlinkedExprAssignOperator.prefixDecrement: |
| 2697 return TokenType.MINUS_MINUS; | 2697 return TokenType.MINUS_MINUS; |
| 2698 case UnlinkedExprAssignOperator.postfixIncrement: | 2698 case UnlinkedExprAssignOperator.postfixIncrement: |
| 2699 return TokenType.PLUS_PLUS; | 2699 return TokenType.PLUS_PLUS; |
| 2700 case UnlinkedExprAssignOperator.postfixDecrement: | 2700 case UnlinkedExprAssignOperator.postfixDecrement: |
| 2701 return TokenType.MINUS_MINUS; | 2701 return TokenType.MINUS_MINUS; |
| 2702 } | 2702 } |
| 2703 return null; |
| 2703 } | 2704 } |
| 2704 } | 2705 } |
| 2705 | 2706 |
| 2706 /** | 2707 /** |
| 2707 * Element representing a field resynthesized from a summary during | 2708 * Element representing a field resynthesized from a summary during |
| 2708 * linking. | 2709 * linking. |
| 2709 */ | 2710 */ |
| 2710 abstract class FieldElementForLink implements FieldElement { | 2711 abstract class FieldElementForLink implements FieldElement { |
| 2711 @override | 2712 @override |
| 2712 PropertyAccessorElementForLink get getter; | 2713 PropertyAccessorElementForLink get getter; |
| (...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3910 @override | 3911 @override |
| 3911 ParameterKind get parameterKind { | 3912 ParameterKind get parameterKind { |
| 3912 switch (_unlinkedParam.kind) { | 3913 switch (_unlinkedParam.kind) { |
| 3913 case UnlinkedParamKind.required: | 3914 case UnlinkedParamKind.required: |
| 3914 return ParameterKind.REQUIRED; | 3915 return ParameterKind.REQUIRED; |
| 3915 case UnlinkedParamKind.positional: | 3916 case UnlinkedParamKind.positional: |
| 3916 return ParameterKind.POSITIONAL; | 3917 return ParameterKind.POSITIONAL; |
| 3917 case UnlinkedParamKind.named: | 3918 case UnlinkedParamKind.named: |
| 3918 return ParameterKind.NAMED; | 3919 return ParameterKind.NAMED; |
| 3919 } | 3920 } |
| 3921 return null; |
| 3920 } | 3922 } |
| 3921 | 3923 |
| 3922 @override | 3924 @override |
| 3923 DartType get type { | 3925 DartType get type { |
| 3924 if (_inferredType != null) { | 3926 if (_inferredType != null) { |
| 3925 return _inferredType; | 3927 return _inferredType; |
| 3926 } else if (_declaredType == null) { | 3928 } else if (_declaredType == null) { |
| 3927 if (_unlinkedParam.isFunctionTyped) { | 3929 if (_unlinkedParam.isFunctionTyped) { |
| 3928 _declaredType = new FunctionTypeImpl( | 3930 _declaredType = new FunctionTypeImpl( |
| 3929 new FunctionElementForLink_FunctionTypedParam( | 3931 new FunctionElementForLink_FunctionTypedParam( |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4951 * there are no type parameters in scope. | 4953 * there are no type parameters in scope. |
| 4952 */ | 4954 */ |
| 4953 TypeParameterizedElementMixin get _typeParameterContext; | 4955 TypeParameterizedElementMixin get _typeParameterContext; |
| 4954 | 4956 |
| 4955 @override | 4957 @override |
| 4956 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 4958 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 4957 | 4959 |
| 4958 @override | 4960 @override |
| 4959 String toString() => '$enclosingElement.$name'; | 4961 String toString() => '$enclosingElement.$name'; |
| 4960 } | 4962 } |
| OLD | NEW |