resolve_names.h 704 B

1234567891011121314151617181920
  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_NAMES_H_
  5. #define EXECUTABLE_SEMANTICS_INTERPRETER_RESOLVE_NAMES_H_
  6. #include "executable_semantics/ast/ast.h"
  7. #include "executable_semantics/common/arena.h"
  8. namespace Carbon {
  9. // Resolves names (IdentifierExpressions) in the AST.
  10. // On failure, `ast` is left in a partial state and should not be further
  11. // processed.
  12. auto ResolveNames(AST& ast) -> ErrorOr<Success>;
  13. } // namespace Carbon
  14. #endif // EXECUTABLE_SEMANTICS_INTERPRETER_RESOLVE_CONTROL_FLOW_H_