mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-27 06:20:11 +01:00
This starts detecting naming collisions as a consequence of being able to determine when the name is declared twice in a given scope. Co-authored-by: Geoff Romer <gromer@google.com>
19 lines
613 B
C++
19 lines
613 B
C++
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
#ifndef EXECUTABLE_SEMANTICS_INTERPRETER_RESOLVE_NAMES_H_
|
|
#define EXECUTABLE_SEMANTICS_INTERPRETER_RESOLVE_NAMES_H_
|
|
|
|
#include "executable_semantics/ast/ast.h"
|
|
#include "executable_semantics/common/arena.h"
|
|
|
|
namespace Carbon {
|
|
|
|
// Resolves names (IdentifierExpressions) in the AST.
|
|
void ResolveNames(Nonnull<Arena*>, AST& ast);
|
|
|
|
} // namespace Carbon
|
|
|
|
#endif // EXECUTABLE_SEMANTICS_INTERPRETER_RESOLVE_CONTROL_FLOW_H_
|