resolve_names.h 736 B

12345678910111213141516171819202122
  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 CARBON_EXPLORER_INTERPRETER_RESOLVE_NAMES_H_
  5. #define CARBON_EXPLORER_INTERPRETER_RESOLVE_NAMES_H_
  6. #include "explorer/ast/ast.h"
  7. #include "explorer/base/arena.h"
  8. #include "explorer/base/trace_stream.h"
  9. namespace Carbon {
  10. // Resolves names (IdentifierExpressions) in the AST.
  11. // On failure, `ast` is left in a partial state and should not be further
  12. // processed.
  13. auto ResolveNames(AST& ast, Nonnull<TraceStream*> trace_stream)
  14. -> ErrorOr<Success>;
  15. } // namespace Carbon
  16. #endif // CARBON_EXPLORER_INTERPRETER_RESOLVE_NAMES_H_