Update number_value

This commit is contained in:
Tobe O 2019-08-07 21:48:41 -04:00
parent bf2ef30ade
commit 5e43d414ae

View file

@ -1,9 +1,9 @@
import 'dart:math' as math;
import 'package:source_span/source_span.dart';
import '../token.dart';
import 'value.dart';
import 'input_value.dart';
class NumberValueContext extends ValueContext<num> {
class NumberValueContext extends InputValueContext<num> {
final Token NUMBER;
NumberValueContext(this.NUMBER);
@ -21,8 +21,8 @@ class NumberValueContext extends ValueContext<num> {
}
@override
num get value => numberValue;
FileSpan get span => NUMBER.span;
@override
FileSpan get span => NUMBER.span;
num computeValue(Map<String, dynamic> variables) => numberValue;
}