mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
We used to have context.allowLocalUsages() for permitting a code analysis to guess types from file-local function calls. This analysis mode came into conflict with the new structural types, since they both provided types for function parameters. Another problem is that the user used to see the types inferred from local calls in the documentation pop-up and it was not clear where did they come from. The solution is to introduce a new type eval context for code completion only named TypeEvalContext.codeCompletion() and allow file-local call based type inference only in this context.