mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:54:47 +01:00
Rename Parse::Node -> Parse::NodeId. (#3432)
As discussed [on discord](https://discord.com/channels/655572317891461132/655578254970716160/1178878128714678282) and today's toolchain discussion.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
namespace Carbon::Check {
|
||||
|
||||
auto HandleInfixOperator(Context& context, Parse::Node parse_node) -> bool {
|
||||
auto HandleInfixOperator(Context& context, Parse::NodeId parse_node) -> bool {
|
||||
auto [rhs_node, rhs_id] = context.node_stack().PopExprWithParseNode();
|
||||
auto [lhs_node, lhs_id] = context.node_stack().PopExprWithParseNode();
|
||||
|
||||
@@ -81,7 +81,7 @@ auto HandleInfixOperator(Context& context, Parse::Node parse_node) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
auto HandlePostfixOperator(Context& context, Parse::Node parse_node) -> bool {
|
||||
auto HandlePostfixOperator(Context& context, Parse::NodeId parse_node) -> bool {
|
||||
auto value_id = context.node_stack().PopExpr();
|
||||
|
||||
// Figure out the operator for the token.
|
||||
@@ -100,7 +100,7 @@ auto HandlePostfixOperator(Context& context, Parse::Node parse_node) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
auto HandlePrefixOperator(Context& context, Parse::Node parse_node) -> bool {
|
||||
auto HandlePrefixOperator(Context& context, Parse::NodeId parse_node) -> bool {
|
||||
auto value_id = context.node_stack().PopExpr();
|
||||
|
||||
// Figure out the operator for the token.
|
||||
@@ -195,7 +195,7 @@ auto HandlePrefixOperator(Context& context, Parse::Node parse_node) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
auto HandleShortCircuitOperand(Context& context, Parse::Node parse_node)
|
||||
auto HandleShortCircuitOperand(Context& context, Parse::NodeId parse_node)
|
||||
-> bool {
|
||||
// Convert the condition to `bool`.
|
||||
auto cond_value_id = context.node_stack().PopExpr();
|
||||
|
||||
Reference in New Issue
Block a user