| Index: pkg/analyzer/lib/src/generated/ast.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
|
| index 3c0b07550c4e81026a589a9b5ab730c266255742..b39919c3f35a899ffaa4af0ee2571f53ec4037c4 100644
|
| --- a/pkg/analyzer/lib/src/generated/ast.dart
|
| +++ b/pkg/analyzer/lib/src/generated/ast.dart
|
| @@ -140,15 +140,6 @@ abstract class AnnotatedNode extends AstNode {
|
| NodeList<Annotation> get metadata => _metadata;
|
|
|
| /**
|
| - * Set the metadata associated with this node to the given [metadata].
|
| - */
|
| - @deprecated // Directly modify the list returned by "this.metadata"
|
| - void set metadata(List<Annotation> metadata) {
|
| - _metadata.clear();
|
| - _metadata.addAll(metadata);
|
| - }
|
| -
|
| - /**
|
| * Return a list containing the comment and annotations associated with this
|
| * node, sorted in lexical order.
|
| */
|
| @@ -465,37 +456,6 @@ class ArgumentList extends AstNode {
|
| @override
|
| accept(AstVisitor visitor) => visitor.visitArgumentList(this);
|
|
|
| - /**
|
| - * If
|
| - * * the given [expression] is a child of this list,
|
| - * * the AST structure has been resolved,
|
| - * * the function being invoked is known based on propagated type information,
|
| - * and
|
| - * * the expression corresponds to one of the parameters of the function being
|
| - * invoked,
|
| - * then return the parameter element representing the parameter to which the
|
| - * value of the given expression will be bound. Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.propagatedParameterElement"
|
| - ParameterElement getPropagatedParameterElementFor(Expression expression) {
|
| - return _getPropagatedParameterElementFor(expression);
|
| - }
|
| -
|
| - /**
|
| - * If
|
| - * * the given [expression] is a child of this list,
|
| - * * the AST structure has been resolved,
|
| - * * the function being invoked is known based on static type information, and
|
| - * * the expression corresponds to one of the parameters of the function being
|
| - * invoked,
|
| - * then return the parameter element representing the parameter to which the
|
| - * value of the given expression will be bound. Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.staticParameterElement"
|
| - ParameterElement getStaticParameterElementFor(Expression expression) {
|
| - return _getStaticParameterElementFor(expression);
|
| - }
|
| -
|
| @override
|
| void visitChildren(AstVisitor visitor) {
|
| _arguments.accept(visitor);
|
| @@ -721,20 +681,6 @@ class AssertStatement extends Statement {
|
| Token get endToken => semicolon;
|
|
|
| /**
|
| - * Return the token representing the 'assert' keyword.
|
| - */
|
| - @deprecated // Use "this.assertKeyword"
|
| - Token get keyword => assertKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'assert' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.assertKeyword"
|
| - set keyword(Token token) {
|
| - assertKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the message to report if the assertion fails.
|
| */
|
| Expression get message => _message;
|
| @@ -862,17 +808,6 @@ class AssignmentExpression extends Expression {
|
| int get precedence => 1;
|
|
|
| /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on propagated type information, then return the parameter
|
| - * element representing the parameter to which the value of the right operand
|
| - * will be bound. Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.propagatedParameterElement"
|
| - ParameterElement get propagatedParameterElementForRightHandSide {
|
| - return _propagatedParameterElementForRightHandSide;
|
| - }
|
| -
|
| - /**
|
| * Return the expression used to compute the right hand side.
|
| */
|
| Expression get rightHandSide => _rightHandSide;
|
| @@ -887,17 +822,6 @@ class AssignmentExpression extends Expression {
|
|
|
| /**
|
| * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on static type information, then return the parameter element
|
| - * representing the parameter to which the value of the right operand will be
|
| - * bound. Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.staticParameterElement"
|
| - ParameterElement get staticParameterElementForRightHandSide {
|
| - return _staticParameterElementForRightHandSide;
|
| - }
|
| -
|
| - /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| * known based on propagated type information, then return the parameter
|
| * element representing the parameter to which the value of the right operand
|
| * will be bound. Otherwise, return `null`.
|
| @@ -2940,12 +2864,6 @@ abstract class AstNode {
|
| /**
|
| * An empty list of AST nodes.
|
| */
|
| - @deprecated // Use "AstNode.EMPTY_LIST"
|
| - static const List<AstNode> EMPTY_ARRAY = EMPTY_LIST;
|
| -
|
| - /**
|
| - * An empty list of AST nodes.
|
| - */
|
| static const List<AstNode> EMPTY_LIST = const <AstNode>[];
|
|
|
| /**
|
| @@ -3038,14 +2956,6 @@ abstract class AstNode {
|
| AstNode get parent => _parent;
|
|
|
| /**
|
| - * Set the parent of this node to the [newParent].
|
| - */
|
| - @deprecated // Never intended for public use.
|
| - void set parent(AstNode newParent) {
|
| - _parent = newParent;
|
| - }
|
| -
|
| - /**
|
| * Return the node at the root of this node's AST structure. Note that this
|
| * method's performance is linear with respect to the depth of the node in the
|
| * AST structure (O(depth)).
|
| @@ -3067,14 +2977,6 @@ abstract class AstNode {
|
| /* <E> E */ accept(AstVisitor /*<E>*/ visitor);
|
|
|
| /**
|
| - * Make this node the parent of the given [child] node. Return the child node.
|
| - */
|
| - @deprecated // Never intended for public use.
|
| - AstNode becomeParentOf(AstNode child) {
|
| - return _becomeParentOf(child);
|
| - }
|
| -
|
| - /**
|
| * Return the most immediate ancestor of this node for which the [predicate]
|
| * returns `true`, or `null` if there is no such ancestor. Note that this node
|
| * will never be returned.
|
| @@ -3100,16 +3002,6 @@ abstract class AstNode {
|
| }
|
|
|
| /**
|
| - * If the given [child] is not `null`, use the given [visitor] to visit it.
|
| - */
|
| - @deprecated // Never intended for public use.
|
| - void safelyVisitChild(AstNode child, AstVisitor visitor) {
|
| - if (child != null) {
|
| - child.accept(visitor);
|
| - }
|
| - }
|
| -
|
| - /**
|
| * Set the value of the property with the given [name] to the given [value].
|
| * If the value is `null`, the property will effectively be removed.
|
| */
|
| @@ -3542,17 +3434,6 @@ class BinaryExpression extends Expression {
|
| int get precedence => operator.type.precedence;
|
|
|
| /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on propagated type information, then return the parameter
|
| - * element representing the parameter to which the value of the right operand
|
| - * will be bound. Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.propagatedParameterElement"
|
| - ParameterElement get propagatedParameterElementForRightOperand {
|
| - return _propagatedParameterElementForRightOperand;
|
| - }
|
| -
|
| - /**
|
| * Return the expression used to compute the right operand.
|
| */
|
| Expression get rightOperand => _rightOperand;
|
| @@ -3567,17 +3448,6 @@ class BinaryExpression extends Expression {
|
|
|
| /**
|
| * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on static type information, then return the parameter element
|
| - * representing the parameter to which the value of the right operand will be
|
| - * bound. Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.staticParameterElement"
|
| - ParameterElement get staticParameterElementForRightOperand {
|
| - return _staticParameterElementForRightOperand;
|
| - }
|
| -
|
| - /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| * known based on propagated type information, then return the parameter
|
| * element representing the parameter to which the value of the right operand
|
| * will be bound. Otherwise, return `null`.
|
| @@ -3904,20 +3774,6 @@ class BreakStatement extends Statement {
|
| Token get endToken => semicolon;
|
|
|
| /**
|
| - * Return the token representing the 'break' keyword.
|
| - */
|
| - @deprecated // Use "this.breakKeyword"
|
| - Token get keyword => breakKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'break' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.breakKeyword"
|
| - void set keyword(Token token) {
|
| - breakKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the label associated with the statement, or `null` if there is no
|
| * label.
|
| */
|
| @@ -5979,21 +5835,6 @@ class ConstructorFieldInitializer extends ConstructorInitializer {
|
| _fieldName = _becomeParentOf(identifier);
|
| }
|
|
|
| - /**
|
| - * Return the token for the 'this' keyword, or `null` if there is no 'this'
|
| - * keyword.
|
| - */
|
| - @deprecated // Use "this.thisKeyword"
|
| - Token get keyword => thisKeyword;
|
| -
|
| - /**
|
| - * Set the token for the 'this' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.thisKeyword"
|
| - set keyword(Token token) {
|
| - thisKeyword = token;
|
| - }
|
| -
|
| @override
|
| accept(AstVisitor visitor) => visitor.visitConstructorFieldInitializer(this);
|
|
|
| @@ -6156,21 +5997,6 @@ class ContinueStatement extends Statement {
|
| Token get endToken => semicolon;
|
|
|
| /**
|
| - * Return the token for the 'continue' keyword, or `null` if there is no
|
| - * 'continue' keyword.
|
| - */
|
| - @deprecated // Use "this.continueKeyword"
|
| - Token get keyword => continueKeyword;
|
| -
|
| - /**
|
| - * Set the token for the 'continue' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.continueKeyword"
|
| - set keyword(Token token) {
|
| - continueKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the label associated with the statement, or `null` if there is no
|
| * label.
|
| */
|
| @@ -7016,21 +6842,6 @@ class EnumDeclaration extends NamedCompilationUnitMember {
|
| @override
|
| Token get firstTokenAfterCommentAndMetadata => enumKeyword;
|
|
|
| - /**
|
| - * Return the token for the 'enum' keyword, or `null` if there is no
|
| - * 'enum' keyword.
|
| - */
|
| - @deprecated // Use "this.enumKeyword"
|
| - Token get keyword => enumKeyword;
|
| -
|
| - /**
|
| - * Set the token for the 'enum' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.enumKeyword"
|
| - set keyword(Token token) {
|
| - enumKeyword = token;
|
| - }
|
| -
|
| @override
|
| accept(AstVisitor visitor) => visitor.visitEnumDeclaration(this);
|
|
|
| @@ -7116,12 +6927,6 @@ abstract class Expression extends AstNode {
|
| /**
|
| * An empty list of expressions.
|
| */
|
| - @deprecated // Use "Expression.EMPTY_LIST"
|
| - static const List<Expression> EMPTY_ARRAY = EMPTY_LIST;
|
| -
|
| - /**
|
| - * An empty list of expressions.
|
| - */
|
| static const List<Expression> EMPTY_LIST = const <Expression>[];
|
|
|
| /**
|
| @@ -7444,20 +7249,6 @@ class ExtendsClause extends AstNode {
|
| Token get endToken => _superclass.endToken;
|
|
|
| /**
|
| - * Return the token for the 'extends' keyword.
|
| - */
|
| - @deprecated // Use "this.extendsKeyword"
|
| - Token get keyword => extendsKeyword;
|
| -
|
| - /**
|
| - * Set the token for the 'extends' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.extendsKeyword"
|
| - set keyword(Token token) {
|
| - extendsKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the name of the class that is being extended.
|
| */
|
| TypeName get superclass => _superclass;
|
| @@ -7675,20 +7466,6 @@ class FieldFormalParameter extends NormalFormalParameter {
|
| }
|
|
|
| /**
|
| - * Return the token representing the 'this' keyword.
|
| - */
|
| - @deprecated // Use "this.thisKeyword"
|
| - Token get thisToken => thisKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'this' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.thisKeyword"
|
| - set thisToken(Token token) {
|
| - thisKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the name of the declared type of the parameter, or `null` if the
|
| * parameter does not have a declared type. Note that if this is a
|
| * function-typed field formal parameter this is the return type of the
|
| @@ -7786,44 +7563,6 @@ class ForEachStatement extends Statement {
|
| Statement _body;
|
|
|
| /**
|
| - * Initialize a newly created for-each statement. The [awaitKeyword] can be
|
| - * `null` if this is not an asynchronous for loop.
|
| - */
|
| - @deprecated // Use new ForEachStatement.withDeclaration(...)
|
| - ForEachStatement.con1(
|
| - this.awaitKeyword,
|
| - this.forKeyword,
|
| - this.leftParenthesis,
|
| - DeclaredIdentifier loopVariable,
|
| - this.inKeyword,
|
| - Expression iterator,
|
| - this.rightParenthesis,
|
| - Statement body) {
|
| - _loopVariable = _becomeParentOf(loopVariable);
|
| - _iterable = _becomeParentOf(iterator);
|
| - _body = _becomeParentOf(body);
|
| - }
|
| -
|
| - /**
|
| - * Initialize a newly created for-each statement. The [awaitKeyword] can be
|
| - * `null` if this is not an asynchronous for loop.
|
| - */
|
| - @deprecated // Use new ForEachStatement.withReference(...)
|
| - ForEachStatement.con2(
|
| - this.awaitKeyword,
|
| - this.forKeyword,
|
| - this.leftParenthesis,
|
| - SimpleIdentifier identifier,
|
| - this.inKeyword,
|
| - Expression iterator,
|
| - this.rightParenthesis,
|
| - Statement body) {
|
| - _identifier = _becomeParentOf(identifier);
|
| - _iterable = _becomeParentOf(iterator);
|
| - _body = _becomeParentOf(body);
|
| - }
|
| -
|
| - /**
|
| * Initialize a newly created for-each statement whose loop control variable
|
| * is declared internally (in the for-loop part). The [awaitKeyword] can be
|
| * `null` if this is not an asynchronous for loop.
|
| @@ -7918,12 +7657,6 @@ class ForEachStatement extends Statement {
|
| }
|
|
|
| /**
|
| - * Return the expression evaluated to produce the iterator.
|
| - */
|
| - @deprecated // Use "this.iterable"
|
| - Expression get iterator => iterable;
|
| -
|
| - /**
|
| * Return the declaration of the loop variable, or `null` if the loop variable
|
| * is a simple identifier.
|
| */
|
| @@ -9702,20 +9435,6 @@ class ImplementsClause extends AstNode {
|
| */
|
| NodeList<TypeName> get interfaces => _interfaces;
|
|
|
| - /**
|
| - * Return the token representing the 'implements' keyword.
|
| - */
|
| - @deprecated // Use "this.implementsKeyword"
|
| - Token get keyword => implementsKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'implements' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.implementsKeyword"
|
| - set keyword(Token token) {
|
| - implementsKeyword = token;
|
| - }
|
| -
|
| @override
|
| accept(AstVisitor visitor) => visitor.visitImplementsClause(this);
|
|
|
| @@ -9869,21 +9588,6 @@ class ImportDirective extends NamespaceDirective {
|
| _prefix = _becomeParentOf(prefix);
|
| }
|
|
|
| - /**
|
| - * The token representing the 'as' token, or `null` if the imported names are
|
| - * not prefixed.
|
| - */
|
| - @deprecated // Use "this.asKeyword"
|
| - Token get asToken => asKeyword;
|
| -
|
| - /**
|
| - * The token representing the 'as' token to the given token.
|
| - */
|
| - @deprecated // Use "this.asKeyword"
|
| - set asToken(Token token) {
|
| - asKeyword = token;
|
| - }
|
| -
|
| @override
|
| Iterable get childEntities => super._childEntities
|
| ..add(_uri)
|
| @@ -9893,21 +9597,6 @@ class ImportDirective extends NamespaceDirective {
|
| ..addAll(combinators)
|
| ..add(semicolon);
|
|
|
| - /**
|
| - * Return the token representing the 'deferred' token, or `null` if the
|
| - * imported is not deferred.
|
| - */
|
| - @deprecated // Use "this.deferredKeyword"
|
| - Token get deferredToken => deferredKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'deferred' token to the given token.
|
| - */
|
| - @deprecated // Use "this.deferredKeyword"
|
| - set deferredToken(Token token) {
|
| - deferredKeyword = token;
|
| - }
|
| -
|
| @override
|
| ImportElement get element => super.element as ImportElement;
|
|
|
| @@ -11136,17 +10825,6 @@ class IndexExpression extends Expression {
|
| int get precedence => 15;
|
|
|
| /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on propagated type information, then return the parameter
|
| - * element representing the parameter to which the value of the index
|
| - * expression will be bound. Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.propagatedParameterElement"
|
| - ParameterElement get propagatedParameterElementForIndex {
|
| - return _propagatedParameterElementForIndex;
|
| - }
|
| -
|
| - /**
|
| * Return the expression used to compute the object being indexed. If this
|
| * index expression is not part of a cascade expression, then this is the same
|
| * as [target]. If this index expression is part of a cascade expression, then
|
| @@ -11167,17 +10845,6 @@ class IndexExpression extends Expression {
|
| }
|
|
|
| /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on static type information, then return the parameter element
|
| - * representing the parameter to which the value of the index expression will
|
| - * be bound. Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.propagatedParameterElement"
|
| - ParameterElement get staticParameterElementForIndex {
|
| - return _staticParameterElementForIndex;
|
| - }
|
| -
|
| - /**
|
| * Return the expression used to compute the object being indexed, or `null`
|
| * if this index expression is part of a cascade expression.
|
| *
|
| @@ -11825,20 +11492,6 @@ class LibraryDirective extends Directive {
|
| Token get keyword => libraryKeyword;
|
|
|
| /**
|
| - * Return the token representing the 'library' token.
|
| - */
|
| - @deprecated // Use "this.libraryKeyword"
|
| - Token get libraryToken => libraryKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'library' token to the given [token].
|
| - */
|
| - @deprecated // Use "this.libraryKeyword"
|
| - set libraryToken(Token token) {
|
| - libraryKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the name of the library being defined.
|
| */
|
| LibraryIdentifier get name => _name;
|
| @@ -12522,26 +12175,6 @@ class MethodInvocation extends Expression {
|
| _methodName = _becomeParentOf(identifier);
|
| }
|
|
|
| - /**
|
| - * The operator that separates the target from the method name, or `null`
|
| - * if there is no target. In an ordinary method invocation this will be a
|
| - * period ('.'). In a cascade section this will be the cascade operator
|
| - * ('..').
|
| - */
|
| - @deprecated // Use this.operator
|
| - Token get period => operator;
|
| -
|
| - /**
|
| - * The operator that separates the target from the method name, or `null`
|
| - * if there is no target. In an ordinary method invocation this will be a
|
| - * period ('.'). In a cascade section this will be the cascade operator
|
| - * ('..').
|
| - */
|
| - @deprecated // Use this.operator
|
| - void set period(Token value) {
|
| - operator = value;
|
| - }
|
| -
|
| @override
|
| int get precedence => 15;
|
|
|
| @@ -12833,20 +12466,6 @@ class NativeClause extends AstNode {
|
| Token get endToken => _name.endToken;
|
|
|
| /**
|
| - * Get the token representing the 'native' keyword.
|
| - */
|
| - @deprecated // Use "this.nativeKeyword"
|
| - Token get keyword => nativeKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'native' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.nativeKeyword"
|
| - set keyword(Token token) {
|
| - nativeKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the name of the native object that implements the class.
|
| */
|
| StringLiteral get name => _name;
|
| @@ -12914,22 +12533,6 @@ class NativeFunctionBody extends FunctionBody {
|
| Token get endToken => semicolon;
|
|
|
| /**
|
| - * Return the token representing 'native' that marks the start of the function
|
| - * body.
|
| - */
|
| - @deprecated // Use "this.nativeKeyword"
|
| - Token get nativeToken => nativeKeyword;
|
| -
|
| - /**
|
| - * Set the token representing 'native' that marks the start of the function
|
| - * body to the given [token].
|
| - */
|
| - @deprecated // Use "this.nativeKeyword"
|
| - set nativeToken(Token token) {
|
| - nativeKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the string literal representing the string after the 'native' token.
|
| */
|
| StringLiteral get stringLiteral => _stringLiteral;
|
| @@ -13000,7 +12603,8 @@ class NodeList<E extends AstNode> extends Object with ListMixin<E> {
|
| int get length => _elements.length;
|
|
|
| @deprecated // Never intended for public use.
|
| - void set length(int value) {
|
| + @override
|
| + void set length(int newLength) {
|
| throw new UnsupportedError("Cannot resize NodeList.");
|
| }
|
|
|
| @@ -13074,12 +12678,6 @@ class NodeList<E extends AstNode> extends Object with ListMixin<E> {
|
| _elements.removeAt(index);
|
| return removedNode;
|
| }
|
| -
|
| - /**
|
| - * Create an empty list with the given [owner].
|
| - */
|
| - @deprecated // Use "new NodeList<E>(owner)"
|
| - static NodeList create(AstNode owner) => new NodeList(owner);
|
| }
|
|
|
| /**
|
| @@ -13115,22 +12713,6 @@ class NodeLocator extends UnifyingAstVisitor<Object> {
|
| this._endOffset = endOffset == null ? startOffset : endOffset;
|
|
|
| /**
|
| - * Initialize a newly created locator to locate an [AstNode] by locating the
|
| - * node within an AST structure that corresponds to the given [offset] in the
|
| - * source.
|
| - */
|
| - @deprecated // Use new NodeLocator(offset)
|
| - NodeLocator.con1(int offset) : this(offset);
|
| -
|
| - /**
|
| - * Initialize a newly created locator to locate an [AstNode] by locating the
|
| - * node within an AST structure that corresponds to the given range of
|
| - * characters (between the [startOffset] and [endOffset] in the source.
|
| - */
|
| - @deprecated // Use new NodeLocator(startOffset, endOffset)
|
| - NodeLocator.con2(this._startOffset, this._endOffset);
|
| -
|
| - /**
|
| * Return the node that was found that corresponds to the given source range
|
| * or `null` if there is no such node.
|
| */
|
| @@ -14756,20 +14338,6 @@ class PartDirective extends UriBasedDirective {
|
| @override
|
| Token get keyword => partKeyword;
|
|
|
| - /**
|
| - * Return the token representing the 'part' token.
|
| - */
|
| - @deprecated // Use "this.partKeyword"
|
| - Token get partToken => partKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'part' token to the given [token].
|
| - */
|
| - @deprecated // Use "this.partKeyword"
|
| - set partToken(Token token) {
|
| - partKeyword = token;
|
| - }
|
| -
|
| @override
|
| CompilationUnitElement get uriElement => element as CompilationUnitElement;
|
|
|
| @@ -14845,34 +14413,6 @@ class PartOfDirective extends Directive {
|
| _libraryName = _becomeParentOf(libraryName);
|
| }
|
|
|
| - /**
|
| - * Return the token representing the 'of' token.
|
| - */
|
| - @deprecated // Use "this.ofKeyword"
|
| - Token get ofToken => ofKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'of' token to the given [token].
|
| - */
|
| - @deprecated // Use "this.ofKeyword"
|
| - set ofToken(Token token) {
|
| - ofKeyword = token;
|
| - }
|
| -
|
| - /**
|
| - * Return the token representing the 'part' token.
|
| - */
|
| - @deprecated // Use "this.partKeyword"
|
| - Token get partToken => partKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'part' token to the given [token].
|
| - */
|
| - @deprecated // Use "this.partKeyword"
|
| - set partToken(Token token) {
|
| - partKeyword = token;
|
| - }
|
| -
|
| @override
|
| accept(AstVisitor visitor) => visitor.visitPartOfDirective(this);
|
|
|
| @@ -14969,28 +14509,6 @@ class PostfixExpression extends Expression {
|
| * element representing the parameter to which the value of the operand will
|
| * be bound. Otherwise, return `null`.
|
| */
|
| - @deprecated // Use "expression.propagatedParameterElement"
|
| - ParameterElement get propagatedParameterElementForOperand {
|
| - return _propagatedParameterElementForOperand;
|
| - }
|
| -
|
| - /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on static type information, then return the parameter element
|
| - * representing the parameter to which the value of the operand will be bound.
|
| - * Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.propagatedParameterElement"
|
| - ParameterElement get staticParameterElementForOperand {
|
| - return _staticParameterElementForOperand;
|
| - }
|
| -
|
| - /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on propagated type information, then return the parameter
|
| - * element representing the parameter to which the value of the operand will
|
| - * be bound. Otherwise, return `null`.
|
| - */
|
| ParameterElement get _propagatedParameterElementForOperand {
|
| if (propagatedElement == null) {
|
| return null;
|
| @@ -15242,28 +14760,6 @@ class PrefixExpression extends Expression {
|
| * element representing the parameter to which the value of the operand will
|
| * be bound. Otherwise, return `null`.
|
| */
|
| - @deprecated // Use "expression.propagatedParameterElement"
|
| - ParameterElement get propagatedParameterElementForOperand {
|
| - return _propagatedParameterElementForOperand;
|
| - }
|
| -
|
| - /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on static type information, then return the parameter element
|
| - * representing the parameter to which the value of the operand will be bound.
|
| - * Otherwise, return `null`.
|
| - */
|
| - @deprecated // Use "expression.propagatedParameterElement"
|
| - ParameterElement get staticParameterElementForOperand {
|
| - return _staticParameterElementForOperand;
|
| - }
|
| -
|
| - /**
|
| - * If the AST structure has been resolved, and the function being invoked is
|
| - * known based on propagated type information, then return the parameter
|
| - * element representing the parameter to which the value of the operand will
|
| - * be bound. Otherwise, return `null`.
|
| - */
|
| ParameterElement get _propagatedParameterElementForOperand {
|
| if (propagatedElement == null) {
|
| return null;
|
| @@ -16172,20 +15668,6 @@ class RedirectingConstructorInvocation extends ConstructorInitializer {
|
| @override
|
| Token get endToken => _argumentList.endToken;
|
|
|
| - /**
|
| - * Return the token for the 'this' keyword.
|
| - */
|
| - @deprecated // Use "this.thisKeyword"
|
| - Token get keyword => thisKeyword;
|
| -
|
| - /**
|
| - * Set the token for the 'this' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.thisKeyword"
|
| - set keyword(Token token) {
|
| - thisKeyword = token;
|
| - }
|
| -
|
| @override
|
| accept(AstVisitor visitor) =>
|
| visitor.visitRedirectingConstructorInvocation(this);
|
| @@ -16223,20 +15705,6 @@ class RethrowExpression extends Expression {
|
| @override
|
| Token get endToken => rethrowKeyword;
|
|
|
| - /**
|
| - * Return the token representing the 'rethrow' keyword.
|
| - */
|
| - @deprecated // Use "this.rethrowKeyword"
|
| - Token get keyword => rethrowKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'rethrow' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.rethrowKeyword"
|
| - set keyword(Token token) {
|
| - rethrowKeyword = token;
|
| - }
|
| -
|
| @override
|
| int get precedence => 0;
|
|
|
| @@ -16304,20 +15772,6 @@ class ReturnStatement extends Statement {
|
| _expression = _becomeParentOf(expression);
|
| }
|
|
|
| - /**
|
| - * Return the token representing the 'return' keyword.
|
| - */
|
| - @deprecated // Use "this.returnKeyword"
|
| - Token get keyword => returnKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'return' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.returnKeyword"
|
| - set keyword(Token token) {
|
| - returnKeyword = token;
|
| - }
|
| -
|
| @override
|
| accept(AstVisitor visitor) => visitor.visitReturnStatement(this);
|
|
|
| @@ -17358,12 +16812,6 @@ class SimpleStringLiteral extends SingleStringLiteral {
|
| String _value;
|
|
|
| /**
|
| - * The toolkit specific element associated with this literal, or `null`.
|
| - */
|
| - @deprecated // No replacement
|
| - Element toolkitElement;
|
| -
|
| - /**
|
| * Initialize a newly created simple string literal.
|
| */
|
| SimpleStringLiteral(this.literal, String value) {
|
| @@ -17688,14 +17136,6 @@ abstract class StringLiteral extends Literal {
|
| * [IllegalArgumentException] if the string is not a constant string without
|
| * any string interpolation.
|
| */
|
| - @deprecated // Use "this.stringValue"
|
| - void appendStringValue(StringBuffer buffer) => _appendStringValue(buffer);
|
| -
|
| - /**
|
| - * Append the value of this string literal to the given [buffer]. Throw an
|
| - * [IllegalArgumentException] if the string is not a constant string without
|
| - * any string interpolation.
|
| - */
|
| void _appendStringValue(StringBuffer buffer);
|
| }
|
|
|
| @@ -17787,20 +17227,6 @@ class SuperConstructorInvocation extends ConstructorInitializer {
|
| @override
|
| Token get endToken => _argumentList.endToken;
|
|
|
| - /**
|
| - * Return the token for the 'super' keyword.
|
| - */
|
| - @deprecated // Use "this.superKeyword"
|
| - Token get keyword => superKeyword;
|
| -
|
| - /**
|
| - * Set the token for the 'super' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.superKeyword"
|
| - set keyword(Token token) {
|
| - superKeyword = token;
|
| - }
|
| -
|
| @override
|
| accept(AstVisitor visitor) => visitor.visitSuperConstructorInvocation(this);
|
|
|
| @@ -17837,20 +17263,6 @@ class SuperExpression extends Expression {
|
| @override
|
| Token get endToken => superKeyword;
|
|
|
| - /**
|
| - * Return the token for the 'super' keyword.
|
| - */
|
| - @deprecated // Use "this.superKeyword"
|
| - Token get keyword => superKeyword;
|
| -
|
| - /**
|
| - * Set the token for the 'super' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.superKeyword"
|
| - set keyword(Token token) {
|
| - superKeyword = token;
|
| - }
|
| -
|
| @override
|
| int get precedence => 16;
|
|
|
| @@ -18105,20 +17517,6 @@ class SwitchStatement extends Statement {
|
| }
|
|
|
| /**
|
| - * Return the token representing the 'switch' keyword.
|
| - */
|
| - @deprecated // Use "this.switchKeyword"
|
| - Token get keyword => switchKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'switch' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.switchKeyword"
|
| - set keyword(Token token) {
|
| - switchKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the switch members that can be selected by the expression.
|
| */
|
| NodeList<SwitchMember> get members => _members;
|
| @@ -18202,20 +17600,6 @@ class ThisExpression extends Expression {
|
| @override
|
| Token get endToken => thisKeyword;
|
|
|
| - /**
|
| - * Return the token representing the 'this' keyword.
|
| - */
|
| - @deprecated // Use "this.thisKeyword"
|
| - Token get keyword => thisKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'this' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.thisKeyword"
|
| - set keyword(Token token) {
|
| - thisKeyword = token;
|
| - }
|
| -
|
| @override
|
| int get precedence => 16;
|
|
|
| @@ -18280,20 +17664,6 @@ class ThrowExpression extends Expression {
|
| _expression = _becomeParentOf(expression);
|
| }
|
|
|
| - /**
|
| - * Return the token representing the 'throw' keyword.
|
| - */
|
| - @deprecated // Use "this.throwKeyword"
|
| - Token get keyword => throwKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'throw' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.throwKeyword"
|
| - set keyword(Token token) {
|
| - throwKeyword = token;
|
| - }
|
| -
|
| @override
|
| int get precedence => 0;
|
|
|
| @@ -19662,20 +19032,6 @@ abstract class TypeAlias extends NamedCompilationUnitMember {
|
|
|
| @override
|
| Token get firstTokenAfterCommentAndMetadata => typedefKeyword;
|
| -
|
| - /**
|
| - * Return the token representing the 'typedef' keyword.
|
| - */
|
| - @deprecated // Use "this.typedefKeyword"
|
| - Token get keyword => typedefKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'typedef' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.typedefKeyword"
|
| - set keyword(Token token) {
|
| - typedefKeyword = token;
|
| - }
|
| }
|
|
|
| /**
|
| @@ -19958,21 +19314,6 @@ class TypeParameter extends Declaration {
|
| Token get firstTokenAfterCommentAndMetadata => _name.beginToken;
|
|
|
| /**
|
| - * Return the token representing the 'extends' keyword, or `null` if there is
|
| - * no explicit upper bound.
|
| - */
|
| - @deprecated // Use "this.extendsKeyword"
|
| - Token get keyword => extendsKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'extends' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.extendsKeyword"
|
| - set keyword(Token token) {
|
| - extendsKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the name of the type parameter.
|
| */
|
| SimpleIdentifier get name => _name;
|
| @@ -20904,20 +20245,6 @@ class WhileStatement extends Statement {
|
| @override
|
| Token get endToken => _body.endToken;
|
|
|
| - /**
|
| - * Return the token representing the 'while' keyword.
|
| - */
|
| - @deprecated // Use "this.whileKeyword"
|
| - Token get keyword => whileKeyword;
|
| -
|
| - /**
|
| - * Set the token representing the 'while' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.whileKeyword"
|
| - set keyword(Token token) {
|
| - whileKeyword = token;
|
| - }
|
| -
|
| @override
|
| accept(AstVisitor visitor) => visitor.visitWhileStatement(this);
|
|
|
| @@ -20965,14 +20292,6 @@ class WithClause extends AstNode {
|
| Token get endToken => _mixinTypes.endToken;
|
|
|
| /**
|
| - * Set the token representing the 'with' keyword to the given [token].
|
| - */
|
| - @deprecated // Use "this.withKeyword"
|
| - void set mixinKeyword(Token token) {
|
| - this.withKeyword = token;
|
| - }
|
| -
|
| - /**
|
| * Return the names of the mixins that were specified.
|
| */
|
| NodeList<TypeName> get mixinTypes => _mixinTypes;
|
|
|