Add support for empty declarations. (#2467)

This commit is contained in:
Jon Ross-Perkins
2022-12-13 14:32:37 -08:00
committed by GitHub
parent 493eb75e7f
commit 773a82f995
2 changed files with 27 additions and 2 deletions
@@ -221,8 +221,10 @@ auto SemanticsParseTreeHandler::HandleDesignatorExpression(
}
auto SemanticsParseTreeHandler::HandleEmptyDeclaration(
ParseTree::Node /*parse_node*/) -> void {
CARBON_FATAL() << "TODO";
ParseTree::Node parse_node) -> void {
// Empty declarations have no actions associated, but we still balance the
// tree.
Push(parse_node);
}
auto SemanticsParseTreeHandler::HandleExpressionStatement(