diff --git a/languages/tree-sitter-stack-graphs-javascript/src/stack-graphs.tsg b/languages/tree-sitter-stack-graphs-javascript/src/stack-graphs.tsg index cae38c73b..6a2996dd3 100644 --- a/languages/tree-sitter-stack-graphs-javascript/src/stack-graphs.tsg +++ b/languages/tree-sitter-stack-graphs-javascript/src/stack-graphs.tsg @@ -227,6 +227,11 @@ attribute node_symbol = node => symbol = (source-text node), source_n ;; - `GUARD:MODULE` - used for the final scope of the module ;; - `GUARD:EXPORTS` - used for the names exported by the module ;; - `GUARD:DEFAULT` - used for the default export value +;; - `GUARD:GANDALF` - used for situations where parts of a graph must be accessible +;; in order to avoid pruning, but which never the less should not be actually reached +;; during any normal traversals. By only ever popping, and never pushing, we can get +;; a connected subgraph that is never the less never traversed. +;; - `GUARD:LABEL` - used for the names of labels ; ## Inherited