| Index: pkg/analyzer/lib/src/dart/element/element.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
|
| index 44c7137bc2049fbf7ec19f586c81b3df4aa12d77..0ad81f0f6fe7a73c0c32686e22714f4def2a2f24 100644
|
| --- a/pkg/analyzer/lib/src/dart/element/element.dart
|
| +++ b/pkg/analyzer/lib/src/dart/element/element.dart
|
| @@ -2930,7 +2930,17 @@ class LabelElementImpl extends ElementImpl implements LabelElement {
|
| * `switch` statement and [onSwitchMember] should be `true` if this label is
|
| * associated with a `switch` member.
|
| */
|
| - LabelElementImpl(
|
| + LabelElementImpl(String name, int nameOffset, this._onSwitchStatement,
|
| + this._onSwitchMember)
|
| + : super(name, nameOffset);
|
| +
|
| + /**
|
| + * Initialize a newly created label element to have the given [name].
|
| + * [onSwitchStatement] should be `true` if this label is associated with a
|
| + * `switch` statement and [onSwitchMember] should be `true` if this label is
|
| + * associated with a `switch` member.
|
| + */
|
| + LabelElementImpl.forNode(
|
| Identifier name, this._onSwitchStatement, this._onSwitchMember)
|
| : super.forNode(name);
|
|
|
| @@ -4547,6 +4557,11 @@ class TypeParameterElementImpl extends ElementImpl
|
| TypeParameterElementImpl(String name, int offset) : super(name, offset);
|
|
|
| /**
|
| + * Initialize a newly created type parameter element to have the given [name].
|
| + */
|
| + TypeParameterElementImpl.forNode(Identifier name) : super.forNode(name);
|
| +
|
| + /**
|
| * Initialize a newly created synthetic type parameter element to have the
|
| * given [name], and with [synthetic] set to true.
|
| */
|
| @@ -4554,11 +4569,6 @@ class TypeParameterElementImpl extends ElementImpl
|
| synthetic = true;
|
| }
|
|
|
| - /**
|
| - * Initialize a newly created type parameter element to have the given [name].
|
| - */
|
| - TypeParameterElementImpl.forNode(Identifier name) : super.forNode(name);
|
| -
|
| @override
|
| ElementKind get kind => ElementKind.TYPE_PARAMETER;
|
|
|
|
|