From d355fb3914e7acc1be422541e1b1f52b3e540356 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sun, 8 Oct 2023 18:45:59 -0700 Subject: [PATCH] parser: fix bad type assertions causing NoSuchMethodError --- .../main/kotlin/gay/pizza/pork/parser/ParserNodeAttribution.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/src/main/kotlin/gay/pizza/pork/parser/ParserNodeAttribution.kt b/parser/src/main/kotlin/gay/pizza/pork/parser/ParserNodeAttribution.kt index c5cc55e..7d6c4ef 100644 --- a/parser/src/main/kotlin/gay/pizza/pork/parser/ParserNodeAttribution.kt +++ b/parser/src/main/kotlin/gay/pizza/pork/parser/ParserNodeAttribution.kt @@ -28,7 +28,7 @@ open class ParserNodeAttribution : NodeAttribution { current = store stack.add(store) val node = block() - store = stack.removeLast() + store = stack.removeAt(stack.size - 1) current = stack.lastOrNull() node.data = ParserAttributes(store) return node