From 83536401015ebfe2cf7b13b4182442ea94502dcc Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 14 Jan 2024 16:50:30 +0300 Subject: [PATCH] oppc/pseudocode: always use keywords for emit calls --- src/openpower/oppc/pc_pseudocode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openpower/oppc/pc_pseudocode.py b/src/openpower/oppc/pc_pseudocode.py index b9d1b964..074d4c0d 100644 --- a/src/openpower/oppc/pc_pseudocode.py +++ b/src/openpower/oppc/pc_pseudocode.py @@ -95,7 +95,7 @@ class PseudocodeVisitor(pc_util.Visitor): for (level, stmt) in self[node.body]: self[node].emit(stmt=stmt, level=level) if node.orelse: - self[node].emit("else") + self[node].emit(stmt="else") for (level, stmt) in self[node.orelse]: self[node].emit(stmt=stmt, level=level) @@ -126,7 +126,7 @@ class PseudocodeVisitor(pc_util.Visitor): for (level, stmt) in self[node.body]: self[node].emit(stmt=stmt, level=level) if node.orelse: - self[node].emit("else") + self[node].emit(stmt="else") for (level, stmt) in self[node.orelse]: self[node].emit(stmt=stmt, level=level) @@ -143,7 +143,7 @@ class PseudocodeVisitor(pc_util.Visitor): @pc_util.Hook(pc_ast.SwitchExpr) def SwitchExpr(self, node): yield node - self[node].emit(f"switch({str(self[node.subject])})") + self[node].emit(stmt=f"switch({str(self[node.subject])})") with self[node]: for (level, stmt) in self[node.cases]: self[node].emit(stmt=stmt, level=level) -- 2.30.2