mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:51:09 +01:00
Parsing, semantic analysis, and lowering for and, or, not. (#2897)
Lowering for `and` and `or` is not yet complete because `Branch` lowering isn't done yet.
This commit is contained in:
@@ -44,6 +44,13 @@ class SemanticsNodeBlockStack {
|
||||
// SemanticsNodeBlockId::Empty is returned if one wasn't allocated.
|
||||
auto Pop() -> SemanticsNodeBlockId;
|
||||
|
||||
// Pops the top node block, ensuring that it is lazily allocated if it's
|
||||
// empty. For use when more nodes will be added to the block later.
|
||||
auto PopForAdd() -> SemanticsNodeBlockId {
|
||||
PeekForAdd();
|
||||
return Pop();
|
||||
}
|
||||
|
||||
// Prints the stack for a stack dump.
|
||||
auto PrintForStackDump(llvm::raw_ostream& output) const -> void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user