Formatting

This commit is contained in:
Tobe O 2019-08-07 22:45:51 -04:00
parent 018de5b546
commit 5e4b2b520e
4 changed files with 6 additions and 6 deletions

View file

@ -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);
}

View file

@ -54,8 +54,8 @@ List<Token> 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));
}
}

View file

@ -34,8 +34,7 @@ List<ArgumentContext> parseArgumentList(String text) =>
Matcher isArgument(String name, value) => _IsArgument(name, value);
Matcher isArgumentList(List<Matcher> arguments) =>
_IsArgumentList(arguments);
Matcher isArgumentList(List<Matcher> arguments) => _IsArgumentList(arguments);
class _IsArgument extends Matcher {
final String name;

View file

@ -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<T>(String name, String text) {