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; String get name => nameToken.text;
@override @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) { for (var pattern in _patterns.keys) {
if (scanner.matches(pattern)) { if (scanner.matches(pattern)) {
potential.add(Token( potential.add(
_patterns[pattern], scanner.lastMatch[0], scanner.lastSpan)); 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 isArgument(String name, value) => _IsArgument(name, value);
Matcher isArgumentList(List<Matcher> arguments) => Matcher isArgumentList(List<Matcher> arguments) => _IsArgumentList(arguments);
_IsArgumentList(arguments);
class _IsArgument extends Matcher { class _IsArgument extends Matcher {
final String name; final String name;