Files
carbon-lang/toolchain/check/handle_noop.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

20 lines
586 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 HandleEmptyDeclaration(Context& /*context*/, Parse::Node /*parse_node*/)
-> bool {
// Empty declarations have no actions associated.
return true;
}
auto HandleInvalidParse(Context& context, Parse::Node parse_node) -> bool {
return context.TODO(parse_node, "HandleInvalidParse");
}
} // namespace Carbon::Check