diff --git a/graphql_parser/lib/src/language/ast/default_value.dart b/graphql_parser/lib/src/language/ast/default_value.dart index de41a580..8da3414a 100644 --- a/graphql_parser/lib/src/language/ast/default_value.dart +++ b/graphql_parser/lib/src/language/ast/default_value.dart @@ -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); }