From 70a896ec45f24e353ea082b3bd422c36c750391c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 5 Mar 2022 00:58:13 +0100 Subject: [PATCH] ci: Cover more node types in check-potfiles gjs enabled support for static class blocks and class fields, so adjust the script to not trip over those nodes when we start using them. Part-of: --- .gitlab-ci/check-potfiles.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci/check-potfiles.js b/.gitlab-ci/check-potfiles.js index 28448f874..0c8885e25 100644 --- a/.gitlab-ci/check-potfiles.js +++ b/.gitlab-ci/check-potfiles.js @@ -85,6 +85,10 @@ function nodesToWalk(node) { case 'BlockStatement': case 'Program': return node.body; + case 'StaticClassBlock': + return [node.body]; + case 'ClassField': + return [node.name, node.init]; case 'CallExpression': case 'NewExpression': case 'OptionalCallExpression':