| 1234567891011121314151617181920212223242526272829303132333435 |
- // 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 HandleEmptyDecl(Context& /*context*/, Parse::NodeId /*parse_node*/)
- -> bool {
- // Empty declarations have no actions associated.
- return true;
- }
- auto HandleInvalidParse(Context& context, Parse::NodeId parse_node) -> bool {
- return context.TODO(parse_node, "HandleInvalidParse");
- }
- auto HandleInvalidParseStart(Context& context, Parse::NodeId parse_node)
- -> bool {
- return context.TODO(parse_node, "HandleInvalidParseStart");
- }
- auto HandleInvalidParseSubtree(Context& context, Parse::NodeId parse_node)
- -> bool {
- return context.TODO(parse_node, "HandleInvalidParseSubtree");
- }
- auto HandlePlaceholder(Context& /*context*/, Parse::NodeId /*parse_node*/)
- -> bool {
- CARBON_FATAL()
- << "Placeholder node should always be replaced before parse completes";
- }
- } // namespace Carbon::Check
|