mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 17:28:11 +00:00
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.
20 lines
586 B
C++
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
|