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:
parent
69717424f7
commit
70a896ec45
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user