sdedic opened a new pull request #3125:
URL: https://github.com/apache/netbeans/pull/3125
The basic idea is to use Groovy compiler's `StaticTypeCheckingVisitor` to
attribute the AST. The visitor leaves evaluated types in node's metadata
('StaticTypesMarker.INFERRED_TYPE`), which is more precise than our own type
evaluator (naturally).
Even more important is `StaticTypesMarker.DIRECT_METHOD_CALL_TARGET` that
points to the method (`MethodNode`) to be called from the expression: out code
completion attemoted to evaluate the types itself, but did not even count with
subtyping (only with exactly same types) ! Not to mention things like boxing,
unboxing, closures etc.
(will add more comments)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists