| 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.element; | 5 library analyzer.src.dart.element.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/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 * The type defined by the class. | 107 * The type defined by the class. |
| 108 */ | 108 */ |
| 109 InterfaceType type; | 109 InterfaceType type; |
| 110 | 110 |
| 111 /** | 111 /** |
| 112 * A list containing all of the type parameters defined for this class. | 112 * A list containing all of the type parameters defined for this class. |
| 113 */ | 113 */ |
| 114 List<TypeParameterElement> _typeParameters = TypeParameterElement.EMPTY_LIST; | 114 List<TypeParameterElement> _typeParameters = TypeParameterElement.EMPTY_LIST; |
| 115 | 115 |
| 116 /** | 116 /** |
| 117 * The [SourceRange] of the `with` clause, `null` if there is no one. | |
| 118 */ | |
| 119 SourceRange withClauseRange; | |
| 120 | |
| 121 /** | |
| 122 * A flag indicating whether the types associated with the instance members of | 117 * A flag indicating whether the types associated with the instance members of |
| 123 * this class have been inferred. | 118 * this class have been inferred. |
| 124 */ | 119 */ |
| 125 bool hasBeenInferred = false; | 120 bool hasBeenInferred = false; |
| 126 | 121 |
| 127 /** | 122 /** |
| 128 * Initialize a newly created class element to have the given [name] at the | 123 * Initialize a newly created class element to have the given [name] at the |
| 129 * given [offset] in the file that contains the declaration of this element. | 124 * given [offset] in the file that contains the declaration of this element. |
| 130 */ | 125 */ |
| 131 ClassElementImpl(String name, int offset) : super(name, offset); | 126 ClassElementImpl(String name, int offset) : super(name, offset); |
| (...skipping 4659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4791 | 4786 |
| 4792 @override | 4787 @override |
| 4793 void visitElement(Element element) { | 4788 void visitElement(Element element) { |
| 4794 int offset = element.nameOffset; | 4789 int offset = element.nameOffset; |
| 4795 if (offset != -1) { | 4790 if (offset != -1) { |
| 4796 map[offset] = element; | 4791 map[offset] = element; |
| 4797 } | 4792 } |
| 4798 super.visitElement(element); | 4793 super.visitElement(element); |
| 4799 } | 4794 } |
| 4800 } | 4795 } |
| OLD | NEW |