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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2221>
This commit is contained in:
Florian Müllner 2022-03-05 00:58:13 +01:00 committed by Marge Bot
parent 69717424f7
commit 70a896ec45

View File

@ -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':