Update boolean value

This commit is contained in:
Tobe O 2019-08-07 21:45:24 -04:00
parent 31fd0ba7b2
commit cd55bef9f6

View file

@ -1,8 +1,8 @@
import '../token.dart';
import 'package:source_span/source_span.dart';
import 'value.dart';
import 'input_value.dart';
import '../token.dart';
class BooleanValueContext extends ValueContext<bool> {
class BooleanValueContext extends InputValueContext<bool> {
bool _valueCache;
final Token BOOLEAN;
@ -13,8 +13,8 @@ class BooleanValueContext extends ValueContext<bool> {
bool get booleanValue => _valueCache ??= BOOLEAN.text == 'true';
@override
bool get value => booleanValue;
FileSpan get span => BOOLEAN.span;
@override
FileSpan get span => BOOLEAN.span;
bool computeValue(Map<String, dynamic> variables) => booleanValue;
}