[gnome-shell] ci: Cover more node types in check-potfiles



commit 70a896ec45f24e353ea082b3bd422c36c750391c
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Mar 5 00:58:13 2022 +0100

    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>

 .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 28448f874c..0c8885e25c 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':


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]