| 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 bb44db5d5b3ccdd49d072ada95d431440bd68955..8be10192d2f312a27606e34b543aacdc639940c9 100644
|
| --- a/pkg/analyzer/lib/src/generated/ast.dart
|
| +++ b/pkg/analyzer/lib/src/generated/ast.dart
|
| @@ -197,12 +197,10 @@ abstract class AnnotatedNode extends AstNode {
|
| * appeared in the original source
|
| */
|
| List<AstNode> get sortedCommentAndAnnotations {
|
| - List<AstNode> childList = new List<AstNode>();
|
| - childList.add(_comment);
|
| - childList.addAll(_metadata);
|
| - List<AstNode> children = new List.from(childList);
|
| - children.sort(AstNode.LEXICAL_ORDER);
|
| - return children;
|
| + return <AstNode>[]
|
| + ..add(_comment)
|
| + ..addAll(_metadata)
|
| + ..sort(AstNode.LEXICAL_ORDER);
|
| }
|
| }
|
|
|
| @@ -4325,12 +4323,10 @@ class CompilationUnit extends AstNode {
|
| * appeared in the original source
|
| */
|
| List<AstNode> get sortedDirectivesAndDeclarations {
|
| - List<AstNode> childList = new List<AstNode>();
|
| - childList.addAll(_directives);
|
| - childList.addAll(_declarations);
|
| - List<AstNode> children = new List.from(childList);
|
| - children.sort(AstNode.LEXICAL_ORDER);
|
| - return children;
|
| + return <AstNode>[]
|
| + ..addAll(_directives)
|
| + ..addAll(_declarations)
|
| + ..sort(AstNode.LEXICAL_ORDER);
|
| }
|
| }
|
|
|
| @@ -13231,12 +13227,10 @@ abstract class NormalFormalParameter extends FormalParameter {
|
| * appeared in the original source
|
| */
|
| List<AstNode> get sortedCommentAndAnnotations {
|
| - List<AstNode> childList = new List<AstNode>();
|
| - childList.add(_comment);
|
| - childList.addAll(_metadata);
|
| - List<AstNode> children = new List.from(childList);
|
| - children.sort(AstNode.LEXICAL_ORDER);
|
| - return children;
|
| + return <AstNode>[]
|
| + ..add(_comment)
|
| + ..addAll(_metadata)
|
| + ..sort(AstNode.LEXICAL_ORDER);
|
| }
|
| }
|
|
|
|
|