mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:00:13 +01:00
I was running into some difficult merges in #2940, so I'm wanting to finish splitting this last file to minimize the chance of future issues.
27 lines
890 B
C++
27 lines
890 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/semantics/semantics_context.h"
|
|
|
|
namespace Carbon {
|
|
|
|
auto SemanticsHandleEmptyDeclaration(SemanticsContext& /*context*/,
|
|
ParseTree::Node /*parse_node*/) -> bool {
|
|
// Empty declarations have no actions associated.
|
|
return true;
|
|
}
|
|
|
|
auto SemanticsHandleFileEnd(SemanticsContext& /*context*/,
|
|
ParseTree::Node /*parse_node*/) -> bool {
|
|
// Do nothing, no need to balance this node.
|
|
return true;
|
|
}
|
|
|
|
auto SemanticsHandleInvalidParse(SemanticsContext& context,
|
|
ParseTree::Node parse_node) -> bool {
|
|
return context.TODO(parse_node, "HandleInvalidParse");
|
|
}
|
|
|
|
} // namespace Carbon
|