diff --git a/graphql_parser/lib/src/language/ast/argument.dart b/graphql_parser/lib/src/language/ast/argument.dart index 8b3e8294..00382da8 100644 --- a/graphql_parser/lib/src/language/ast/argument.dart +++ b/graphql_parser/lib/src/language/ast/argument.dart @@ -29,5 +29,6 @@ class ArgumentContext extends Node { String get name => nameToken.text; @override - FileSpan get span => nameToken.span.expand(colonToken.span).expand(value.span); + FileSpan get span => + nameToken.span.expand(colonToken.span).expand(value.span); } diff --git a/graphql_parser/lib/src/language/lexer.dart b/graphql_parser/lib/src/language/lexer.dart index 7d5d2658..1d7c35fd 100644 --- a/graphql_parser/lib/src/language/lexer.dart +++ b/graphql_parser/lib/src/language/lexer.dart @@ -54,8 +54,8 @@ List scan(String text, {sourceUrl}) { for (var pattern in _patterns.keys) { if (scanner.matches(pattern)) { - potential.add(Token( - _patterns[pattern], scanner.lastMatch[0], scanner.lastSpan)); + potential.add( + Token(_patterns[pattern], scanner.lastMatch[0], scanner.lastSpan)); } } diff --git a/graphql_parser/test/argument_test.dart b/graphql_parser/test/argument_test.dart index e15262de..fbe12542 100644 --- a/graphql_parser/test/argument_test.dart +++ b/graphql_parser/test/argument_test.dart @@ -34,8 +34,7 @@ List parseArgumentList(String text) => Matcher isArgument(String name, value) => _IsArgument(name, value); -Matcher isArgumentList(List arguments) => - _IsArgumentList(arguments); +Matcher isArgumentList(List arguments) => _IsArgumentList(arguments); class _IsArgument extends Matcher { final String name; diff --git a/graphql_parser/test/issue23_test.dart b/graphql_parser/test/issue23_test.dart index 2648fd30..aa64175b 100644 --- a/graphql_parser/test/issue23_test.dart +++ b/graphql_parser/test/issue23_test.dart @@ -4,7 +4,7 @@ import 'package:test/test.dart'; /// This is an *extremely* verbose test, but basically it /// parses both documents, and makes sure that $memberId has /// a valid value. -/// +/// /// Resolves https://github.com/angel-dart/graphql/issues/23. void main() { void testStr(String name, String text) {