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 | 8 |
9 import 'package:analyzer/src/generated/utilities_general.dart'; | 9 import 'package:analyzer/src/generated/utilities_general.dart'; |
10 import 'package:analyzer/src/task/dart.dart'; | 10 import 'package:analyzer/src/task/dart.dart'; |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 * A list containing all of the type parameters defined for this class. | 546 * A list containing all of the type parameters defined for this class. |
547 */ | 547 */ |
548 List<TypeParameterElement> _typeParameters = TypeParameterElement.EMPTY_LIST; | 548 List<TypeParameterElement> _typeParameters = TypeParameterElement.EMPTY_LIST; |
549 | 549 |
550 /** | 550 /** |
551 * The [SourceRange] of the `with` clause, `null` if there is no one. | 551 * The [SourceRange] of the `with` clause, `null` if there is no one. |
552 */ | 552 */ |
553 SourceRange withClauseRange; | 553 SourceRange withClauseRange; |
554 | 554 |
555 /** | 555 /** |
| 556 * A flag indicating whether the types associated with the instance members of |
| 557 * this class have been inferred. |
| 558 */ |
| 559 bool hasBeenInferred = false; |
| 560 |
| 561 /** |
556 * Initialize a newly created class element to have the given [name] at the | 562 * Initialize a newly created class element to have the given [name] at the |
557 * given [offset] in the file that contains the declaration of this element. | 563 * given [offset] in the file that contains the declaration of this element. |
558 */ | 564 */ |
559 ClassElementImpl(String name, int offset) : super(name, offset); | 565 ClassElementImpl(String name, int offset) : super(name, offset); |
560 | 566 |
561 /** | 567 /** |
562 * Initialize a newly created class element to have the given [name]. | 568 * Initialize a newly created class element to have the given [name]. |
563 */ | 569 */ |
564 ClassElementImpl.forNode(Identifier name) : super.forNode(name); | 570 ClassElementImpl.forNode(Identifier name) : super.forNode(name); |
565 | 571 |
(...skipping 10199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10765 | 10771 |
10766 @override | 10772 @override |
10767 void visitElement(Element element) { | 10773 void visitElement(Element element) { |
10768 int offset = element.nameOffset; | 10774 int offset = element.nameOffset; |
10769 if (offset != -1) { | 10775 if (offset != -1) { |
10770 map[offset] = element; | 10776 map[offset] = element; |
10771 } | 10777 } |
10772 super.visitElement(element); | 10778 super.visitElement(element); |
10773 } | 10779 } |
10774 } | 10780 } |
OLD | NEW |