Files
carbon-lang/toolchain/check/handle_match.cpp
T
Jon Ross-Perkins 86a7c9ff45 Rename parse_node -> node_id (#3760)
This was previously discussed at
https://discord.com/channels/655572317891461132/655578254970716160/1209975051588210729.
I'm initiating this mainly because we typically use "id" suffixes to
indicate an `IdBase` being passed around and the non-id suffix of
`parse_node` suggests at it carrying more data than it actually does.
There used to be more reason for avoiding `node_id` because
`SemIR::InstId` used to be named `NodeId`, but that's no longer
necessary. As a consequence, I'd like to rename `parse_node` to more
precisely reflect its type.

In full, this is doing:

```
parse_node_kind -> node_kind
parse_node -> node_id
ParseNodeCategory -> NodeCategory
ParseNodeKind -> NodeKind
ParseNode -> NodeId
```

This is primarily in check and sem_ir, but with some `parse_node_kind`
references in parse too.

Pluralization is consistent with name forms on both sides, so that
wasn't part of my replacements.
2024-03-09 00:21:29 +00:00

94 lines
3.1 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/check/context.h"
#include "toolchain/check/convert.h"
namespace Carbon::Check {
auto HandleMatchConditionStart(Context& context,
Parse::MatchConditionStartId node_id) -> bool {
return context.TODO(node_id, "HandleMatchConditionStart");
}
auto HandleMatchCondition(Context& context, Parse::MatchConditionId node_id)
-> bool {
return context.TODO(node_id, "HandleMatchCondition");
}
auto HandleMatchIntroducer(Context& context, Parse::MatchIntroducerId node_id)
-> bool {
return context.TODO(node_id, "HandleMatchIntroducer");
}
auto HandleMatchStatementStart(Context& context,
Parse::MatchStatementStartId node_id) -> bool {
return context.TODO(node_id, "HandleMatchStatementStart");
}
auto HandleMatchCaseIntroducer(Context& context,
Parse::MatchCaseIntroducerId node_id) -> bool {
return context.TODO(node_id, "HandleMatchCaseIntroducer");
}
auto HandleMatchCaseGuardIntroducer(Context& context,
Parse::MatchCaseGuardIntroducerId node_id)
-> bool {
return context.TODO(node_id, "HandleMatchCaseGuardIntroducer");
}
auto HandleMatchCaseGuardStart(Context& context,
Parse::MatchCaseGuardStartId node_id) -> bool {
return context.TODO(node_id, "HandleMatchCaseGuardStart");
}
auto HandleMatchCaseGuard(Context& context, Parse::MatchCaseGuardId node_id)
-> bool {
return context.TODO(node_id, "HandleMatchCaseGuard");
}
auto HandleMatchCaseEqualGreater(Context& context,
Parse::MatchCaseEqualGreaterId node_id)
-> bool {
return context.TODO(node_id, "HandleMatchCaseEqualGreater");
}
auto HandleMatchCaseStart(Context& context, Parse::MatchCaseStartId node_id)
-> bool {
return context.TODO(node_id, "HandleMatchCaseStart");
}
auto HandleMatchCase(Context& context, Parse::MatchCaseId node_id) -> bool {
return context.TODO(node_id, "HandleMatchCase");
}
auto HandleMatchDefaultIntroducer(Context& context,
Parse::MatchDefaultIntroducerId node_id)
-> bool {
return context.TODO(node_id, "MatchDefaultIntroducer");
}
auto HandleMatchDefaultEqualGreater(Context& context,
Parse::MatchDefaultEqualGreaterId node_id)
-> bool {
return context.TODO(node_id, "MatchDefaultEqualGreater");
}
auto HandleMatchDefaultStart(Context& context,
Parse::MatchDefaultStartId node_id) -> bool {
return context.TODO(node_id, "HandleMatchDefaultStart");
}
auto HandleMatchDefault(Context& context, Parse::MatchDefaultId node_id)
-> bool {
return context.TODO(node_id, "HandleMatchDefault");
}
auto HandleMatchStatement(Context& context, Parse::MatchStatementId node_id)
-> bool {
return context.TODO(node_id, "HandleMatchStatement");
}
} // namespace Carbon::Check