Do not check and load psi for modifier list with stub

This commit is contained in:
Nikolay Krasko
2018-10-25 18:44:23 +03:00
parent 04559800f1
commit ff9477554f
@@ -421,9 +421,12 @@ object ModifierCheckerCore {
actualTargets: List<KotlinTarget>,
languageVersionSettings: LanguageVersionSettings
) {
if (list.stub != null) return
// It's a list of all nodes with error already reported
// General strategy: report no more than one error but any number of warnings
val incorrectNodes = hashSetOf<ASTNode>()
val children = list.node.getChildren(MODIFIER_KEYWORD_SET)
for (second in children) {
for (first in children) {