i need to know how intellij idea features like (quick documentation) reach the static types of a language local variables and methods parameters.
this is a java local variable
and this is a dart local variable
i'm working with dart PSI for a plugin, i need to get dart variables and methods parameters static types but i couldn't find a clue on how it could be done. so is there a structure in PSI that is responsibile for such a task?
i managed to debug dart document provider in order to reach the statements which are responsibile for gathering the documentation info. it appears to be the following two statements.
List<HoverInformation> hoverList = psiFileVirtualFile != null ? DartAnalysisServerService
.analysis_getHover(psiFileVirtualFile, o.getTextOffset()) :
var information = hoverList.isEmpty() ? null : (HoverInformation)hoverList.get(0);
i tried to debug the statements above further more to understand how it reflect on static type only, but it was extremely diffucult to follow the debugger and i couldn't get a useful information out of debugging.
so, if i want to reach the variables and methods parameters static types in dart langugage, how could it be done?
if you don't know just help me with anything could be useful for searching.