Clarify some comments (#3360)

This commit is contained in:
josh11b
2023-11-03 00:25:05 +00:00
committed by GitHub
parent 545a5b3679
commit 0318631d1a
3 changed files with 6 additions and 5 deletions
+2 -4
View File
@@ -168,12 +168,10 @@ class NodeStack {
return std::nullopt;
}
// Peeks at the parse node of the given depth in the stack, or by default the
// top node.
// Peeks at the parse node of the top of the name stack.
auto PeekParseNode() const -> Parse::Node { return stack_.back().parse_node; }
// Peeks at the ID of node at the given depth in the stack, or by default the
// top node.
// Peeks at the ID associated with the top of the name stack.
template <Parse::NodeKind::RawEnumType RequiredParseKind>
auto Peek() const -> auto {
Entry back = stack_.back();