mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue