Run dartfmt on pkg/analyzer/test/dart/ast/ast_test.dart
Change-Id: Id7388677356bc2af20278eb9e8f5df459fe4df85
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97282
Commit-Queue: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/analyzer/test/dart/ast/ast_test.dart b/pkg/analyzer/test/dart/ast/ast_test.dart
index 829b1a9..c278ea0 100644
--- a/pkg/analyzer/test/dart/ast/ast_test.dart
+++ b/pkg/analyzer/test/dart/ast/ast_test.dart
@@ -102,13 +102,12 @@
void test_isAbstract() {
expect(
- AstTestFactory
- .classDeclaration(null, "A", null, null, null, null)
+ AstTestFactory.classDeclaration(null, "A", null, null, null, null)
.isAbstract,
isFalse);
expect(
- AstTestFactory
- .classDeclaration(Keyword.ABSTRACT, "B", null, null, null, null)
+ AstTestFactory.classDeclaration(
+ Keyword.ABSTRACT, "B", null, null, null, null)
.isAbstract,
isTrue);
}
@@ -118,13 +117,12 @@
class ClassTypeAliasTest extends ParserTestCase {
void test_isAbstract() {
expect(
- AstTestFactory
- .classTypeAlias("A", null, null, null, null, null)
+ AstTestFactory.classTypeAlias("A", null, null, null, null, null)
.isAbstract,
isFalse);
expect(
- AstTestFactory
- .classTypeAlias("B", null, Keyword.ABSTRACT, null, null, null)
+ AstTestFactory.classTypeAlias(
+ "B", null, Keyword.ABSTRACT, null, null, null)
.isAbstract,
isTrue);
}
@@ -479,8 +477,8 @@
void test_getBeginToken_nonEmpty() {
NodeList<AstNode> list =
astFactory.nodeList<AstNode>(AstTestFactory.argumentList());
- AstNode node = AstTestFactory
- .parenthesizedExpression(AstTestFactory.booleanLiteral(true));
+ AstNode node = AstTestFactory.parenthesizedExpression(
+ AstTestFactory.booleanLiteral(true));
list.add(node);
expect(list.beginToken, same(node.beginToken));
}
@@ -494,8 +492,8 @@
void test_getEndToken_nonEmpty() {
NodeList<AstNode> list =
astFactory.nodeList<AstNode>(AstTestFactory.argumentList());
- AstNode node = AstTestFactory
- .parenthesizedExpression(AstTestFactory.booleanLiteral(true));
+ AstNode node = AstTestFactory.parenthesizedExpression(
+ AstTestFactory.booleanLiteral(true));
list.add(node);
expect(list.endToken, same(node.endToken));
}
@@ -726,8 +724,9 @@
}
void test_inGetterContext_constructorFieldInitializer() {
- ConstructorFieldInitializer initializer = AstTestFactory
- .constructorFieldInitializer(false, 'f', AstTestFactory.integer(0));
+ ConstructorFieldInitializer initializer =
+ AstTestFactory.constructorFieldInitializer(
+ false, 'f', AstTestFactory.integer(0));
SimpleIdentifier identifier = initializer.fieldName;
expect(identifier.inGetterContext(), isFalse);
}
@@ -795,8 +794,8 @@
}
void test_isQualified_inMethodInvocation_noTarget() {
- MethodInvocation invocation = AstTestFactory
- .methodInvocation2("test", [AstTestFactory.identifier3("arg0")]);
+ MethodInvocation invocation = AstTestFactory.methodInvocation2(
+ "test", [AstTestFactory.identifier3("arg0")]);
SimpleIdentifier identifier = invocation.methodName;
expect(identifier.isQualified, isFalse);
}
@@ -1242,8 +1241,8 @@
}
void test_isMultiline() {
- var b = AstTestFactory
- .interpolationExpression(AstTestFactory.identifier3('bb'));
+ var b = AstTestFactory.interpolationExpression(
+ AstTestFactory.identifier3('bb'));
// '
{
var a = AstTestFactory.interpolationString("'a", "a");
@@ -1280,8 +1279,8 @@
}
void test_isSingleQuoted() {
- var b = AstTestFactory
- .interpolationExpression(AstTestFactory.identifier3('bb'));
+ var b = AstTestFactory.interpolationExpression(
+ AstTestFactory.identifier3('bb'));
// "
{
var a = AstTestFactory.interpolationString('"a', "a");