OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.dart.element.member; | 5 library analyzer.src.dart.element.member; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/constant/value.dart'; | 8 import 'package:analyzer/dart/constant/value.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 @override | 927 @override |
928 Element get enclosingElement => baseElement.enclosingElement; | 928 Element get enclosingElement => baseElement.enclosingElement; |
929 | 929 |
930 @override | 930 @override |
931 int get hashCode => baseElement.hashCode; | 931 int get hashCode => baseElement.hashCode; |
932 | 932 |
933 @override | 933 @override |
934 TypeParameterType get type => _type; | 934 TypeParameterType get type => _type; |
935 | 935 |
936 @override | 936 @override |
| 937 bool operator ==(Object other) => |
| 938 other is TypeParameterMember && baseElement == other.baseElement; |
| 939 |
| 940 @override |
937 /*=T*/ accept/*<T>*/(ElementVisitor<dynamic/*=T*/ > visitor) => | 941 /*=T*/ accept/*<T>*/(ElementVisitor<dynamic/*=T*/ > visitor) => |
938 visitor.visitTypeParameterElement(this); | 942 visitor.visitTypeParameterElement(this); |
939 | 943 |
940 /** | 944 /** |
941 * If the given [parameter]'s type is different when any type parameters from | 945 * If the given [parameter]'s type is different when any type parameters from |
942 * the defining type's declaration are replaced with the actual type | 946 * the defining type's declaration are replaced with the actual type |
943 * arguments from the [definingType], create a parameter member representing | 947 * arguments from the [definingType], create a parameter member representing |
944 * the given parameter. Return the member that was created, or the base | 948 * the given parameter. Return the member that was created, or the base |
945 * parameter if no member was created. | 949 * parameter if no member was created. |
946 */ | 950 */ |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 DartObject computeConstantValue() => baseElement.computeConstantValue(); | 1053 DartObject computeConstantValue() => baseElement.computeConstantValue(); |
1050 | 1054 |
1051 @override | 1055 @override |
1052 void visitChildren(ElementVisitor visitor) { | 1056 void visitChildren(ElementVisitor visitor) { |
1053 // TODO(brianwilkerson) We need to finish implementing the accessors used | 1057 // TODO(brianwilkerson) We need to finish implementing the accessors used |
1054 // below so that we can safely invoke them. | 1058 // below so that we can safely invoke them. |
1055 super.visitChildren(visitor); | 1059 super.visitChildren(visitor); |
1056 baseElement.initializer?.accept(visitor); | 1060 baseElement.initializer?.accept(visitor); |
1057 } | 1061 } |
1058 } | 1062 } |
OLD | NEW |