Skip to content

Commit

Permalink
Add EmptyStatement.isSynthetic getter.
Browse files Browse the repository at this point in the history
R=brianwilkerson@google.com

Bug:
Change-Id: I16b6457834321fb89c04feb4c50915161765ea6d
Reviewed-on: https://dart-review.googlesource.com/11345
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
  • Loading branch information
scheglov authored and commit-bot@chromium.org committed Oct 5, 2017
1 parent 760cfff commit 2d30c30
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions pkg/analyzer/lib/src/dart/ast/ast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3766,6 +3766,9 @@ class EmptyStatementImpl extends StatementImpl implements EmptyStatement {
@override
Token get endToken => semicolon;

@override
bool get isSynthetic => semicolon.isSynthetic;

@override
E accept<E>(AstVisitor<E> visitor) => visitor.visitEmptyStatement(this);

Expand Down Expand Up @@ -7960,19 +7963,6 @@ class NodeListImpl<E extends AstNode> extends Object
throw new UnsupportedError("Cannot resize NodeList.");
}

/// This is non-API and may be changed or removed at any point.
///
/// Changes the length of this list
/// If [newLength] is greater than the current length,
/// entries are initialized to `null`.
///
/// This list should NOT contain any `null` elements,
/// so be sure to immediately follow a call to this method with calls
/// to replace all the `null` elements with non-`null` elements.
void setLength(int newLength) {
_elements.length = newLength;
}

@override
AstNode get owner => _owner;

Expand Down Expand Up @@ -8058,6 +8048,19 @@ class NodeListImpl<E extends AstNode> extends Object
_elements.removeAt(index);
return removedNode;
}

/// This is non-API and may be changed or removed at any point.
///
/// Changes the length of this list
/// If [newLength] is greater than the current length,
/// entries are initialized to `null`.
///
/// This list should NOT contain any `null` elements,
/// so be sure to immediately follow a call to this method with calls
/// to replace all the `null` elements with non-`null` elements.
void setLength(int newLength) {
_elements.length = newLength;
}
}

/**
Expand Down

0 comments on commit 2d30c30

Please sign in to comment.