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 ee68939488232421d6ee74b679d7bf94c3bf498a..3a2822f02b3ef02c6a5d1ac6dc23cc0ecaebcf18 100644 |
--- a/pkg/analyzer/lib/src/generated/ast.dart |
+++ b/pkg/analyzer/lib/src/generated/ast.dart |
@@ -594,10 +594,8 @@ class AsExpression extends Expression { |
Token get beginToken => _expression.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_expression) |
- ..add(asOperator) |
- ..add(_type); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_expression)..add(asOperator)..add(_type); |
@override |
Token get endToken => _type.endToken; |
@@ -3192,9 +3190,8 @@ class AwaitExpression extends Expression { |
} |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(awaitKeyword) |
- ..add(_expression); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(awaitKeyword)..add(_expression); |
@override |
Token get endToken => _expression.endToken; |
@@ -3288,10 +3285,8 @@ class BinaryExpression extends Expression { |
} |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_leftOperand) |
- ..add(operator) |
- ..add(_rightOperand); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_leftOperand)..add(operator)..add(_rightOperand); |
@override |
Token get endToken => _rightOperand.endToken; |
@@ -3496,10 +3491,8 @@ class BlockFunctionBody extends FunctionBody { |
} |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(keyword) |
- ..add(star) |
- ..add(_block); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(keyword)..add(star)..add(_block); |
@override |
Token get endToken => _block.endToken; |
@@ -3665,10 +3658,8 @@ class BreakStatement extends Statement { |
Token get beginToken => breakKeyword; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(breakKeyword) |
- ..add(_label) |
- ..add(semicolon); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(breakKeyword)..add(_label)..add(semicolon); |
@override |
Token get endToken => semicolon; |
@@ -4575,9 +4566,8 @@ class CommentReference extends AstNode { |
Token get beginToken => _identifier.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(newKeyword) |
- ..add(_identifier); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(newKeyword)..add(_identifier); |
@override |
Token get endToken => _identifier.endToken; |
@@ -4718,9 +4708,7 @@ class CompilationUnit extends AstNode { |
Iterable get childEntities { |
ChildEntities result = new ChildEntities()..add(_scriptTag); |
if (_directivesAreBeforeDeclarations) { |
- result |
- ..addAll(_directives) |
- ..addAll(_declarations); |
+ result..addAll(_directives)..addAll(_declarations); |
} else { |
result.addAll(sortedDirectivesAndDeclarations); |
} |
@@ -5683,10 +5671,8 @@ class ConstructorName extends AstNode { |
Token get beginToken => _type.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_type) |
- ..add(period) |
- ..add(_name); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_type)..add(period)..add(_name); |
@override |
Token get endToken { |
@@ -5776,10 +5762,8 @@ class ContinueStatement extends Statement { |
Token get beginToken => continueKeyword; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(continueKeyword) |
- ..add(_label) |
- ..add(semicolon); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(continueKeyword)..add(_label)..add(semicolon); |
@override |
Token get endToken => semicolon; |
@@ -5880,10 +5864,8 @@ class DeclaredIdentifier extends Declaration { |
} |
@override |
- Iterable get childEntities => super._childEntities |
- ..add(keyword) |
- ..add(_type) |
- ..add(_identifier); |
+ Iterable get childEntities => |
+ super._childEntities..add(keyword)..add(_type)..add(_identifier); |
@override |
LocalVariableElement get element { |
@@ -6004,10 +5986,8 @@ class DefaultFormalParameter extends FormalParameter { |
Token get beginToken => _parameter.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_parameter) |
- ..add(separator) |
- ..add(_defaultValue); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_parameter)..add(separator)..add(_defaultValue); |
/** |
* Return the expression computing the default value for the parameter, or |
@@ -6960,9 +6940,8 @@ class ExpressionStatement extends Statement { |
Token get beginToken => _expression.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_expression) |
- ..add(semicolon); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_expression)..add(semicolon); |
@override |
Token get endToken { |
@@ -7024,9 +7003,8 @@ class ExtendsClause extends AstNode { |
Token get beginToken => extendsKeyword; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(extendsKeyword) |
- ..add(_superclass); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(extendsKeyword)..add(_superclass); |
@override |
Token get endToken => _superclass.endToken; |
@@ -7102,10 +7080,8 @@ class FieldDeclaration extends ClassMember { |
} |
@override |
- Iterable get childEntities => super._childEntities |
- ..add(staticKeyword) |
- ..add(_fieldList) |
- ..add(semicolon); |
+ Iterable get childEntities => |
+ super._childEntities..add(staticKeyword)..add(_fieldList)..add(semicolon); |
@override |
Element get element => null; |
@@ -7609,9 +7585,7 @@ class FormalParameterList extends AstNode { |
} |
result.add(parameter); |
} |
- return result |
- ..add(rightDelimiter) |
- ..add(rightParenthesis); |
+ return result..add(rightDelimiter)..add(rightParenthesis); |
} |
@override |
@@ -8088,9 +8062,8 @@ class FunctionExpression extends Expression { |
} |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_parameters) |
- ..add(_body); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_parameters)..add(_body); |
@override |
Token get endToken { |
@@ -8203,9 +8176,8 @@ class FunctionExpressionInvocation extends Expression { |
} |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_function) |
- ..add(_argumentList); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_function)..add(_argumentList); |
@override |
Token get endToken => _argumentList.endToken; |
@@ -8388,10 +8360,8 @@ class FunctionTypedFormalParameter extends NormalFormalParameter { |
} |
@override |
- Iterable get childEntities => super._childEntities |
- ..add(_returnType) |
- ..add(identifier) |
- ..add(parameters); |
+ Iterable get childEntities => |
+ super._childEntities..add(_returnType)..add(identifier)..add(parameters); |
@override |
Token get endToken => _parameters.endToken; |
@@ -10945,9 +10915,7 @@ class Label extends AstNode { |
Token get beginToken => _label.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_label) |
- ..add(colon); |
+ Iterable get childEntities => new ChildEntities()..add(_label)..add(colon); |
@override |
Token get endToken => colon; |
@@ -11079,10 +11047,8 @@ class LibraryDirective extends Directive { |
} |
@override |
- Iterable get childEntities => super._childEntities |
- ..add(libraryKeyword) |
- ..add(_name) |
- ..add(semicolon); |
+ Iterable get childEntities => |
+ super._childEntities..add(libraryKeyword)..add(_name)..add(semicolon); |
@override |
Token get endToken => semicolon; |
@@ -11398,10 +11364,8 @@ class MapLiteralEntry extends AstNode { |
Token get beginToken => _key.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_key) |
- ..add(separator) |
- ..add(_value); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_key)..add(separator)..add(_value); |
@override |
Token get endToken => _value.endToken; |
@@ -11893,9 +11857,8 @@ class NamedExpression extends Expression { |
Token get beginToken => _name.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_name) |
- ..add(_expression); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_name)..add(_expression); |
/** |
* Return the element representing the parameter being named by this |
@@ -12029,9 +11992,8 @@ class NativeClause extends AstNode { |
Token get beginToken => nativeKeyword; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(nativeKeyword) |
- ..add(_name); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(nativeKeyword)..add(_name); |
@override |
Token get endToken => _name.endToken; |
@@ -13832,10 +13794,8 @@ class PartDirective extends UriBasedDirective { |
: super(comment, metadata, partUri); |
@override |
- Iterable get childEntities => super._childEntities |
- ..add(partKeyword) |
- ..add(_uri) |
- ..add(semicolon); |
+ Iterable get childEntities => |
+ super._childEntities..add(partKeyword)..add(_uri)..add(semicolon); |
@override |
Token get endToken => semicolon; |
@@ -14031,9 +13991,8 @@ class PostfixExpression extends Expression { |
} |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_operand) |
- ..add(operator); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_operand)..add(operator); |
@override |
Token get endToken => operator; |
@@ -14163,10 +14122,8 @@ class PrefixedIdentifier extends Identifier { |
} |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_prefix) |
- ..add(period) |
- ..add(_identifier); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_prefix)..add(period)..add(_identifier); |
@override |
Token get endToken => _identifier.endToken; |
@@ -14307,9 +14264,8 @@ class PrefixExpression extends Expression { |
} |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(operator) |
- ..add(_operand); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(operator)..add(_operand); |
@override |
Token get endToken => _operand.endToken; |
@@ -14439,10 +14395,8 @@ class PropertyAccess extends Expression { |
} |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_target) |
- ..add(operator) |
- ..add(_propertyName); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_target)..add(operator)..add(_propertyName); |
@override |
Token get endToken => _propertyName.endToken; |
@@ -15368,10 +15322,8 @@ class ReturnStatement extends Statement { |
Token get beginToken => returnKeyword; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(returnKeyword) |
- ..add(_expression) |
- ..add(semicolon); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(returnKeyword)..add(_expression)..add(semicolon); |
@override |
Token get endToken => semicolon; |
@@ -16055,10 +16007,8 @@ class SimpleFormalParameter extends NormalFormalParameter { |
} |
@override |
- Iterable get childEntities => super._childEntities |
- ..add(keyword) |
- ..add(_type) |
- ..add(identifier); |
+ Iterable get childEntities => |
+ super._childEntities..add(keyword)..add(_type)..add(identifier); |
@override |
Token get endToken => identifier.endToken; |
@@ -17336,9 +17286,8 @@ class ThrowExpression extends Expression { |
Token get beginToken => throwKeyword; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(throwKeyword) |
- ..add(_expression); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(throwKeyword)..add(_expression); |
@override |
Token get endToken { |
@@ -17417,9 +17366,8 @@ class TopLevelVariableDeclaration extends CompilationUnitMember { |
} |
@override |
- Iterable get childEntities => super._childEntities |
- ..add(_variableList) |
- ..add(semicolon); |
+ Iterable get childEntities => |
+ super._childEntities..add(_variableList)..add(semicolon); |
@override |
Element get element => null; |
@@ -18831,9 +18779,8 @@ abstract class TypedLiteral extends Literal { |
_typeArguments = _becomeParentOf(typeArguments); |
} |
- ChildEntities get _childEntities => new ChildEntities() |
- ..add(constKeyword) |
- ..add(_typeArguments); |
+ ChildEntities get _childEntities => |
+ new ChildEntities()..add(constKeyword)..add(_typeArguments); |
@override |
void visitChildren(AstVisitor visitor) { |
@@ -18877,9 +18824,8 @@ class TypeName extends AstNode { |
Token get beginToken => _name.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_name) |
- ..add(_typeArguments); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_name)..add(_typeArguments); |
@override |
Token get endToken { |
@@ -18994,10 +18940,8 @@ class TypeParameter extends Declaration { |
} |
@override |
- Iterable get childEntities => super._childEntities |
- ..add(_name) |
- ..add(extendsKeyword) |
- ..add(_bound); |
+ Iterable get childEntities => |
+ super._childEntities..add(_name)..add(extendsKeyword)..add(_bound); |
@override |
TypeParameterElement get element => |
@@ -19617,10 +19561,8 @@ class VariableDeclaration extends Declaration { |
} |
@override |
- Iterable get childEntities => super._childEntities |
- ..add(_name) |
- ..add(equals) |
- ..add(_initializer); |
+ Iterable get childEntities => |
+ super._childEntities..add(_name)..add(equals)..add(_initializer); |
/** |
* This overridden implementation of getDocumentationComment() looks in the |
@@ -19850,9 +19792,8 @@ class VariableDeclarationStatement extends Statement { |
Token get beginToken => _variableList.beginToken; |
@override |
- Iterable get childEntities => new ChildEntities() |
- ..add(_variableList) |
- ..add(semicolon); |
+ Iterable get childEntities => |
+ new ChildEntities()..add(_variableList)..add(semicolon); |
@override |
Token get endToken => semicolon; |