| 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 4114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4125 int _visibleRangeOffset = 0; | 4125 int _visibleRangeOffset = 0; |
| 4126 | 4126 |
| 4127 /** | 4127 /** |
| 4128 * The length of the visible range for this element, or `-1` if this element | 4128 * The length of the visible range for this element, or `-1` if this element |
| 4129 * does not have a visible range. | 4129 * does not have a visible range. |
| 4130 */ | 4130 */ |
| 4131 int _visibleRangeLength = -1; | 4131 int _visibleRangeLength = -1; |
| 4132 | 4132 |
| 4133 /** | 4133 /** |
| 4134 * Initialize a newly created parameter element to have the given [name] and | 4134 * Initialize a newly created parameter element to have the given [name] and |
| 4135 * [offset]. | 4135 * [nameOffset]. |
| 4136 */ | 4136 */ |
| 4137 ParameterElementImpl(String name, int nameOffset) : super(name, nameOffset); | 4137 ParameterElementImpl(String name, int nameOffset) : super(name, nameOffset); |
| 4138 | 4138 |
| 4139 /** | 4139 /** |
| 4140 * Initialize a newly created parameter element to have the given [name]. | 4140 * Initialize a newly created parameter element to have the given [name]. |
| 4141 */ | 4141 */ |
| 4142 ParameterElementImpl.forNode(Identifier name) : super.forNode(name); | 4142 ParameterElementImpl.forNode(Identifier name) : super.forNode(name); |
| 4143 | 4143 |
| 4144 /** | 4144 /** |
| 4145 * Creates a synthetic parameter with [name], [type] and [kind]. | 4145 * Creates a synthetic parameter with [name], [type] and [kind]. |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4805 | 4805 |
| 4806 @override | 4806 @override |
| 4807 void visitElement(Element element) { | 4807 void visitElement(Element element) { |
| 4808 int offset = element.nameOffset; | 4808 int offset = element.nameOffset; |
| 4809 if (offset != -1) { | 4809 if (offset != -1) { |
| 4810 map[offset] = element; | 4810 map[offset] = element; |
| 4811 } | 4811 } |
| 4812 super.visitElement(element); | 4812 super.visitElement(element); |
| 4813 } | 4813 } |
| 4814 } | 4814 } |
| OLD | NEW |