| 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 5228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5239 } | 5239 } |
| 5240 buffer.write(">"); | 5240 buffer.write(">"); |
| 5241 } | 5241 } |
| 5242 buffer.write(" = "); | 5242 buffer.write(" = "); |
| 5243 if (function != null) { | 5243 if (function != null) { |
| 5244 (function as ElementImpl).appendTo(buffer); | 5244 (function as ElementImpl).appendTo(buffer); |
| 5245 } | 5245 } |
| 5246 } | 5246 } |
| 5247 | 5247 |
| 5248 @override | 5248 @override |
| 5249 FunctionTypeAlias computeNode() => | 5249 GenericTypeAlias computeNode() => |
| 5250 getNodeMatching((node) => node is GenericTypeAlias); | 5250 getNodeMatching((node) => node is GenericTypeAlias); |
| 5251 | 5251 |
| 5252 @override | 5252 @override |
| 5253 ElementImpl getChild(String identifier) { | 5253 ElementImpl getChild(String identifier) { |
| 5254 for (TypeParameterElement typeParameter in typeParameters) { | 5254 for (TypeParameterElement typeParameter in typeParameters) { |
| 5255 TypeParameterElementImpl typeParameterImpl = typeParameter; | 5255 TypeParameterElementImpl typeParameterImpl = typeParameter; |
| 5256 if (typeParameterImpl.identifier == identifier) { | 5256 if (typeParameterImpl.identifier == identifier) { |
| 5257 return typeParameterImpl; | 5257 return typeParameterImpl; |
| 5258 } | 5258 } |
| 5259 } | 5259 } |
| (...skipping 3859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9119 | 9119 |
| 9120 @override | 9120 @override |
| 9121 void visitElement(Element element) { | 9121 void visitElement(Element element) { |
| 9122 int offset = element.nameOffset; | 9122 int offset = element.nameOffset; |
| 9123 if (offset != -1) { | 9123 if (offset != -1) { |
| 9124 map[offset] = element; | 9124 map[offset] = element; |
| 9125 } | 9125 } |
| 9126 super.visitElement(element); | 9126 super.visitElement(element); |
| 9127 } | 9127 } |
| 9128 } | 9128 } |
| OLD | NEW |