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 engine.element; | 5 library engine.element; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:math' show min; | 8 import 'dart:math' show min; |
9 | 9 |
10 import 'package:analyzer/src/generated/utilities_general.dart'; | 10 import 'package:analyzer/src/generated/utilities_general.dart'; |
(...skipping 10825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10836 * Initialize a newly created element to represent a constructor, based on the | 10836 * Initialize a newly created element to represent a constructor, based on the |
10837 * [baseElement], defined by the [definingType]. | 10837 * [baseElement], defined by the [definingType]. |
10838 */ | 10838 */ |
10839 VariableMember(VariableElement baseElement, ParameterizedType definingType) | 10839 VariableMember(VariableElement baseElement, ParameterizedType definingType) |
10840 : super(baseElement, definingType); | 10840 : super(baseElement, definingType); |
10841 | 10841 |
10842 @override | 10842 @override |
10843 VariableElement get baseElement => super.baseElement as VariableElement; | 10843 VariableElement get baseElement => super.baseElement as VariableElement; |
10844 | 10844 |
10845 @override | 10845 @override |
| 10846 DartObject get constantValue => baseElement.constantValue; |
| 10847 |
| 10848 @override |
10846 bool get hasImplicitType => baseElement.hasImplicitType; | 10849 bool get hasImplicitType => baseElement.hasImplicitType; |
10847 | 10850 |
10848 @override | 10851 @override |
10849 FunctionElement get initializer { | 10852 FunctionElement get initializer { |
10850 // | 10853 // |
10851 // Elements within this element should have type parameters substituted, | 10854 // Elements within this element should have type parameters substituted, |
10852 // just like this element. | 10855 // just like this element. |
10853 // | 10856 // |
10854 throw new UnsupportedOperationException(); | 10857 throw new UnsupportedOperationException(); |
10855 // return getBaseElement().getInitializer(); | 10858 // return getBaseElement().getInitializer(); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10955 | 10958 |
10956 @override | 10959 @override |
10957 void visitElement(Element element) { | 10960 void visitElement(Element element) { |
10958 int offset = element.nameOffset; | 10961 int offset = element.nameOffset; |
10959 if (offset != -1) { | 10962 if (offset != -1) { |
10960 map[offset] = element; | 10963 map[offset] = element; |
10961 } | 10964 } |
10962 super.visitElement(element); | 10965 super.visitElement(element); |
10963 } | 10966 } |
10964 } | 10967 } |
OLD | NEW |