Files
carbon-lang/toolchain/check/handle_file.cpp
T
Richard Smith 7f2f4bec4f Add a Field node for fields in a class. (#3332)
This replaces the use of `VarStorage` in this case.

Add an `UnboundFieldType` type as the type of a field, in cases where
it's referenced without an accompanying object.

Add a `BindName` node to describe the name binding performed for both
variables and fields so that we can handle them more uniformly.
2023-10-25 18:49:36 +00:00

22 lines
628 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
#include "toolchain/check/context.h"
namespace Carbon::Check {
auto HandleFileStart(Context& /*context*/, Parse::Node /*parse_node*/) -> bool {
// No action to perform.
// TODO: We may want to push `FileStart` as a sentinel so that `Peek`s can't
// fail.
return true;
}
auto HandleFileEnd(Context& /*context*/, Parse::Node /*parse_node*/) -> bool {
// No action to perform.
return true;
}
} // namespace Carbon::Check