You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to access template parameters (not arguments) in a custom emitter. I'm currently using navigateProgram() with includeTemplateDeclaration set to true.
The model callback is correctly called for my template type, but I could not figure out how to access the template parameters (e.g. their names).
When manually inspecting the type tree starting from getGlobalNamespaceType(), I can see that the template type seems to have a decorator that is somehow related to the type parameter. Is there a good way to use this information?
Besides that, I noticed, that the decorator property is undefined for the exact same model, when inspecting it from the model callback of my SemanticNodeListener. Is that a bug?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I'm trying to access template parameters (not arguments) in a custom emitter. I'm currently using
navigateProgram()
withincludeTemplateDeclaration
set totrue
.The
model
callback is correctly called for my template type, but I could not figure out how to access the template parameters (e.g. their names).When manually inspecting the type tree starting from
getGlobalNamespaceType()
, I can see that the template type seems to have adecorator
that is somehow related to the type parameter. Is there a good way to use this information?Besides that, I noticed, that the
decorator
property isundefined
for the exact same model, when inspecting it from themodel
callback of mySemanticNodeListener
. Is that a bug?Beta Was this translation helpful? Give feedback.
All reactions