resolve_control_flow.h 657 B

12345678910111213141516171819
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef EXECUTABLE_SEMANTICS_INTERPRETER_RESOLVE_CONTROL_FLOW_H_
  5. #define EXECUTABLE_SEMANTICS_INTERPRETER_RESOLVE_CONTROL_FLOW_H_
  6. #include "executable_semantics/ast/ast.h"
  7. #include "executable_semantics/common/nonnull.h"
  8. namespace Carbon {
  9. // Resolves non-local control-flow edges, such as `break` and `return`, in the
  10. // given AST.
  11. void ResolveControlFlow(AST& ast);
  12. } // namespace Carbon
  13. #endif // EXECUTABLE_SEMANTICS_INTERPRETER_RESOLVE_CONTROL_FLOW_H_