getParameterValueByIndex method

FutureOr<ASTValue?> getParameterValueByIndex(
  1. VMContext context,
  2. int index
)

Implementation

FutureOr<ASTValue?> getParameterValueByIndex(VMContext context, int index) {
  var p = getParameterByIndex(index);
  if (p == null) return null;
  var variable = context.getVariable(p.name, false);
  if (variable == null) return null;

  return variable.resolveMapped((v) => v?.getValue(context));
}