diff --git a/languages/tree-sitter-stack-graphs-typescript/src/stack-graphs.tsg b/languages/tree-sitter-stack-graphs-typescript/src/stack-graphs.tsg index 773abde7c..207c6d880 100644 --- a/languages/tree-sitter-stack-graphs-typescript/src/stack-graphs.tsg +++ b/languages/tree-sitter-stack-graphs-typescript/src/stack-graphs.tsg @@ -5769,7 +5769,7 @@ if none @is_acc { ; (template_literal_type) -(template_literal_type (_)@inner)@type { +(template_literal_type (template_type)@inner)@type { ; propagate lexical scope edge @inner.lexical_scope -> @type.lexical_scope diff --git a/languages/tree-sitter-stack-graphs-typescript/test/types/template-literal-type.ts b/languages/tree-sitter-stack-graphs-typescript/test/types/template-literal-type.ts new file mode 100644 index 000000000..51ffb1fb3 --- /dev/null +++ b/languages/tree-sitter-stack-graphs-typescript/test/types/template-literal-type.ts @@ -0,0 +1,3 @@ +type World = "world"; +type Greeting = `Hello, ${World}!`; +// ^TODO defined: 1