From 8ce450f0d14e150377ac58ba2ee9a92257e942c5 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Tue, 15 Mar 2022 14:01:06 -0400 Subject: [PATCH] Set a role on the module name identifiers. --- semantic-analysis/python.tsg | 1 + 1 file changed, 1 insertion(+) diff --git a/semantic-analysis/python.tsg b/semantic-analysis/python.tsg index 633092fd1..f2f114d8c 100644 --- a/semantic-analysis/python.tsg +++ b/semantic-analysis/python.tsg @@ -22,6 +22,7 @@ (import_statement name: (dotted_name (identifier) @id)) @this { edge @this.node -> @id.node + attr (@id.node) role = "module-name-fragment" attr (@this.node -> @id.node) index = (named-child-index @id) }