| 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/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 2595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2606 } | 2606 } |
| 2607 | 2607 |
| 2608 /** | 2608 /** |
| 2609 * Set the parameters defined by this type alias to the given [parameters] | 2609 * Set the parameters defined by this type alias to the given [parameters] |
| 2610 * without becoming the parent of the parameters. This should only be used by | 2610 * without becoming the parent of the parameters. This should only be used by |
| 2611 * the [TypeResolverVisitor] when creating a synthetic type alias. | 2611 * the [TypeResolverVisitor] when creating a synthetic type alias. |
| 2612 */ | 2612 */ |
| 2613 void shareParameters(List<ParameterElement> parameters) { | 2613 void shareParameters(List<ParameterElement> parameters) { |
| 2614 this._parameters = parameters; | 2614 this._parameters = parameters; |
| 2615 } | 2615 } |
| 2616 |
| 2617 /** |
| 2618 * Set the type parameters defined by this type alias to the given |
| 2619 * [parameters] without becoming the parent of the parameters. This should |
| 2620 * only be used by the [TypeResolverVisitor] when creating a synthetic type |
| 2621 * alias. |
| 2622 */ |
| 2623 void shareTypeParameters(List<TypeParameterElement> typeParameters) { |
| 2624 this._typeParameters = typeParameters; |
| 2625 } |
| 2616 } | 2626 } |
| 2617 | 2627 |
| 2618 /** | 2628 /** |
| 2619 * A concrete implementation of a [FunctionTypeAliasElement]. | 2629 * A concrete implementation of a [FunctionTypeAliasElement]. |
| 2620 */ | 2630 */ |
| 2621 class FunctionTypeAliasElementImpl extends ElementImpl | 2631 class FunctionTypeAliasElementImpl extends ElementImpl |
| 2622 implements FunctionTypeAliasElement { | 2632 implements FunctionTypeAliasElement { |
| 2623 /** | 2633 /** |
| 2624 * A list containing all of the parameters defined by this type alias. | 2634 * A list containing all of the parameters defined by this type alias. |
| 2625 */ | 2635 */ |
| (...skipping 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4577 | 4587 |
| 4578 @override | 4588 @override |
| 4579 void visitElement(Element element) { | 4589 void visitElement(Element element) { |
| 4580 int offset = element.nameOffset; | 4590 int offset = element.nameOffset; |
| 4581 if (offset != -1) { | 4591 if (offset != -1) { |
| 4582 map[offset] = element; | 4592 map[offset] = element; |
| 4583 } | 4593 } |
| 4584 super.visitElement(element); | 4594 super.visitElement(element); |
| 4585 } | 4595 } |
| 4586 } | 4596 } |
| OLD | NEW |