operator <= method

  1. @override
FutureOr<bool> operator <=(
  1. Object other
)
override

Implementation

@override
FutureOr<bool> operator <=(Object other) async {
  if (other is ASTValueNum) {
    return value <= other.value;
  } else if (other is ASTValue) {
    var context = VMContext.getCurrent();
    var v2 = await _getValue(context, other);
    return value <= v2;
  }
  return false;
}