First of all, congratulations for the great work. I've started to work with Recoder, implementing my own SourceVisitor. From VisitMethodReference method in SourceVisitor is there any form to get the ProgramModelInfo? I don't understand why, for example, I can get it from a ClassDeclaration and not from a MethodReference.
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The corresponding ProgramModelInfos are set only for elements of type ProgramModelElement, i.e., types, methods etc.
But you can always get the different services by calling
First of all, congratulations for the great work. I've started to work with Recoder, implementing my own SourceVisitor. From VisitMethodReference method in SourceVisitor is there any form to get the ProgramModelInfo? I don't understand why, for example, I can get it from a ClassDeclaration and not from a MethodReference.
Thanks in advance
Hej,
The corresponding ProgramModelInfos are set only for elements of type ProgramModelElement, i.e., types, methods etc.
But you can always get the different services by calling
JavaProgramFactory.getInstance().getServiceConfiguration().getSERVICENAME();
where SERVICENAME is e.g. SourceInfo, ImplicitElementInfo, NameInfo etc.
Best regards,
Tobias
It's very simple. I'm forget that way. Sorry, thanks for your response.