mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 16:01:05 +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:
@@ -79,7 +79,7 @@ auto LanguageServer::onReply(llvm::json::Value /*id*/,
|
||||
// Returns the text of first child of kind Parse::NodeKind::Name.
|
||||
static auto GetName(const SharedValueStores& value_stores,
|
||||
const Lex::TokenizedBuffer& tokens, const Parse::Tree& p,
|
||||
Parse::Node node) -> std::optional<llvm::StringRef> {
|
||||
Parse::NodeId node) -> std::optional<llvm::StringRef> {
|
||||
for (auto ch : p.children(node)) {
|
||||
if (p.node_kind(ch) == Parse::NodeKind::Name) {
|
||||
return value_stores.identifiers().Get(
|
||||
|
||||
Reference in New Issue
Block a user