mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 22:08:11 +00: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.
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
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 SemanticsHandleParenExpression(SemanticsContext& context,
|
|
ParseTree::Node parse_node) -> bool {
|
|
auto value_id = context.node_stack().Pop<SemanticsNodeId>();
|
|
context.node_stack().PopAndDiscardSoloParseNode(
|
|
ParseNodeKind::ParenExpressionOrTupleLiteralStart);
|
|
context.node_stack().Push(parse_node, value_id);
|
|
return true;
|
|
}
|
|
|
|
auto SemanticsHandleParenExpressionOrTupleLiteralStart(
|
|
SemanticsContext& context, ParseTree::Node parse_node) -> bool {
|
|
context.node_stack().Push(parse_node);
|
|
return true;
|
|
}
|
|
|
|
auto SemanticsHandleTupleLiteral(SemanticsContext& context,
|
|
ParseTree::Node parse_node) -> bool {
|
|
return context.TODO(parse_node, "HandleTupleLiteral");
|
|
}
|
|
|
|
auto SemanticsHandleTupleLiteralComma(SemanticsContext& context,
|
|
ParseTree::Node parse_node) -> bool {
|
|
return context.TODO(parse_node, "HandleTupleLiteralComma");
|
|
}
|
|
|
|
} // namespace Carbon
|