AsyncExecutionState constructor
AsyncExecutionState({
- required Environment environment,
- required Completer<
Object?> completer, - required SAstNode? nextStateIdentifier,
- required InterpretedFunction function,
- Object? lastAwaitResult,
- Object? lastAwaitError,
- StackTrace? lastAwaitStackTrace,
- Iterator<
Object?> ? currentForInIterator, - bool forLoopInitialized = false,
- Environment? forLoopEnvironment,
- SBlock? pendingFinallyBlock,
- Object? currentError,
- StackTrace? currentStackTrace,
- STryStatement? activeTryStatement,
- Object? returnAfterFinally,
- bool isHandlingErrorForRethrow = false,
- InternalInterpreterD4rtException? originalErrorForRethrow,
- bool isHandlingContinue = false,
- StreamController<
Object?> ? generatorStreamController,
Creates a new async execution state.
environment The execution environment for the async function.
completer The completer that will complete when the function finishes.
nextStateIdentifier The AST node representing the next state to execute.
function The interpreted function being executed asynchronously.
Implementation
AsyncExecutionState({
required this.environment,
required this.completer,
required this.nextStateIdentifier,
required this.function,
this.lastAwaitResult,
this.lastAwaitError,
this.lastAwaitStackTrace,
this.currentForInIterator,
this.forLoopInitialized = false,
this.forLoopEnvironment,
this.pendingFinallyBlock,
this.currentError,
this.currentStackTrace,
this.activeTryStatement,
this.returnAfterFinally,
this.isHandlingErrorForRethrow = false,
this.originalErrorForRethrow,
this.isHandlingContinue = false,
this.generatorStreamController,
});