mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Clarify some comments (#3360)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user