pedantic: ast/default_value.dart
This commit is contained in:
parent
44da964dca
commit
b1787d9c8d
1 changed files with 11 additions and 3 deletions
|
@ -3,12 +3,20 @@ import '../token.dart';
|
|||
import 'input_value.dart';
|
||||
import 'node.dart';
|
||||
|
||||
/// The default value to be passed to an [ArgumentContext].
|
||||
class DefaultValueContext extends Node {
|
||||
final Token EQUALS;
|
||||
/// The source token.
|
||||
final Token equals;
|
||||
|
||||
/// The default value for the argument.
|
||||
final InputValueContext value;
|
||||
|
||||
DefaultValueContext(this.EQUALS, this.value);
|
||||
DefaultValueContext(this.equals, this.value);
|
||||
|
||||
/// Use [equals] instead.
|
||||
@deprecated
|
||||
Token get EQUALS => equals;
|
||||
|
||||
@override
|
||||
FileSpan get span => EQUALS.span.expand(value.span);
|
||||
FileSpan get span => equals.span.expand(value.span);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue