Formatting
This commit is contained in:
parent
018de5b546
commit
5e4b2b520e
4 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue