mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
update to new pop API
This commit is contained in:
parent
8469a44c9c
commit
ed55b2ef17
@ -372,7 +372,7 @@ fn renderExpression(r: *Render, node: Ast.Node.Index, space: Space) Error!void {
|
|||||||
if (!ais.indentStackEmpty() and
|
if (!ais.indentStackEmpty() and
|
||||||
token_tags[i] != .colon and
|
token_tags[i] != .colon and
|
||||||
((token_tags[i] != .semicolon and token_tags[i] != .comma) or
|
((token_tags[i] != .semicolon and token_tags[i] != .comma) or
|
||||||
ais.lastSpaceModeIndent() < ais.currentIndent()))
|
ais.lastSpaceModeIndent() < ais.currentIndent()))
|
||||||
{
|
{
|
||||||
ais.popIndent();
|
ais.popIndent();
|
||||||
try ais.pushIndent(.normal);
|
try ais.pushIndent(.normal);
|
||||||
@ -3509,7 +3509,7 @@ fn AutoIndentingStream(comptime UnderlyingWriter: type) type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn popIndent(self: *Self) void {
|
pub fn popIndent(self: *Self) void {
|
||||||
if (self.indent_stack.pop().realized) {
|
if (self.indent_stack.pop().?.realized) {
|
||||||
assert(self.indent_count > 0);
|
assert(self.indent_count > 0);
|
||||||
self.indent_count -= 1;
|
self.indent_count -= 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user