runtimeError function

void runtimeError(
  1. RuntimeError error
)

Implementation

void runtimeError(RuntimeError error) {
  print('${error.message}\n"${error.token.sourceFile}" [line ${error.token.line}]');
  hadRuntimeError = true;
}