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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue