Source code for mqt.debugger.dap.messages.step_out_dap_message

# Copyright (c) 2024 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""Represents the 'stepOut' DAP request."""

from __future__ import annotations

from typing import TYPE_CHECKING, Any

from .dap_message import DAPMessage

if TYPE_CHECKING:
    from .. import DAPServer


[docs] class StepOutDAPMessage(DAPMessage): """Represents the 'stepOut' DAP request.""" message_type_name: str = "stepOut" def __init__(self, message: dict[str, Any]) -> None: """Initializes the 'StepOutDAPMessage' instance. Args: message (dict[str, Any]): The object representing the 'stepOut' request. """ super().__init__(message)
[docs] def validate(self) -> None: """Validates the 'StepOutDAPMessage' instance."""
[docs] def handle(self, server: DAPServer) -> dict[str, Any]: """Performs the action requested by the 'stepOut' DAP request. Args: server (DAPServer): The DAP server that received the request. Returns: dict[str, Any]: _description_ """ server.simulation_state.step_out_forward() return super().handle(server)