@@ -112,7 +112,7 @@ var AnnotationRules = On(Any).Self(
112112 SimpleIdentifier ),
113113 On (HasInternalType (pyast .AsyncFunctionDef )).Roles (FunctionDeclaration ,
114114 FunctionDeclarationName , SimpleIdentifier , Incomplete ),
115- On (HasInternalType ("FunctionDef.decorator_list" )).Roles (Call , SimpleIdentifier , Incomplete ),
115+ On (HasInternalType ("FunctionDef.decorator_list" )).Roles (Call , Incomplete ),
116116 On (HasInternalType ("FunctionDef.body" )).Roles (FunctionDeclarationBody ),
117117 // FIXME: change to FunctionDeclarationArgumentS once the PR has been merged
118118 On (HasInternalType (pyast .Arguments )).Roles (FunctionDeclarationArgument , Incomplete ).Children (
@@ -132,12 +132,11 @@ var AnnotationRules = On(Any).Self(
132132 // TODO: create an issue for the SDK
133133 On (HasInternalType ("arguments.defaults" )).Roles (FunctionDeclarationArgumentDefaultValue , Incomplete ),
134134 On (HasInternalType ("arguments.keywords" )).Roles (FunctionDeclarationArgumentDefaultValue , Incomplete ),
135- On (HasInternalType ("AsyncFunctionDef.decorator_list" )).Roles (Call , SimpleIdentifier , Incomplete ),
135+ On (HasInternalType ("AsyncFunctionDef.decorator_list" )).Roles (Call , Incomplete ),
136136 On (HasInternalType ("AsyncFunctionDef.body" )).Roles (FunctionDeclarationBody ),
137137 // FIXME: change to FunctionDeclarationArgumentS once the PR has been merged
138138 ),
139- On (HasInternalType (pyast .Lambda )).Roles (FunctionDeclaration , SimpleIdentifier , Expression ,
140- Incomplete ).Children (
139+ On (HasInternalType (pyast .Lambda )).Roles (FunctionDeclaration , Expression , Incomplete ).Children (
141140 On (HasInternalType ("Lambda.body" )).Roles (FunctionDeclarationBody ),
142141 // FIXME: change to FunctionDeclarationArgumentS once the PR has been merged
143142 On (HasInternalType (pyast .Arguments )).Roles (FunctionDeclarationArgument , Incomplete ).Children (
@@ -156,9 +155,9 @@ var AnnotationRules = On(Any).Self(
156155 // defaults [2,3]
157156 // TODO: create an issue for the SDK
158157 On (HasInternalType ("arguments.defaults" )).Roles (FunctionDeclarationArgumentDefaultValue ,
159- SimpleIdentifier , Incomplete ),
158+ Incomplete ),
160159 On (HasInternalType ("arguments.keywords" )).Roles (FunctionDeclarationArgumentDefaultValue ,
161- SimpleIdentifier , Incomplete ),
160+ Incomplete ),
162161 ),
163162 ),
164163
@@ -317,7 +316,7 @@ var AnnotationRules = On(Any).Self(
317316
318317 // Python very odd ellipsis operator. Has a special rule in tonoder synthetic tokens
319318 // map to load it with the token "PythonEllipsisOperator" and gets the role SimpleIdentifier
320- On (HasInternalType (pyast .Ellipsis )).Roles (SimpleIdentifier ),
319+ On (HasInternalType (pyast .Ellipsis )).Roles (SimpleIdentifier , Incomplete ),
321320
322321 // List/Map/Set comprehensions. We map the "for x in y" to ForEach roles and the
323322 // "if something" to If* roles. FIXME: missing the top comprehension roles in the UAST, change
0 commit comments