fix compilation after f63325bf2f

This commit is contained in:
Daniil Ovchinnikov
2019-02-05 19:53:29 +03:00
parent 5d1817d628
commit 0a31a1fa49
@@ -1,4 +1,4 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.lang.resolve
import com.intellij.psi.*
@@ -41,7 +41,7 @@ internal object GrCodeReferenceResolver : GroovyResolver<GrCodeReferenceElement>
return when (ref.kind) {
PACKAGE_REFERENCE -> ref.resolveAsPackageReference()
IMPORT_REFERENCE -> ref.resolveAsImportReference()
REFERENCE -> ref.resolveReference()
REFERENCE -> ref.resolveAsReference()
}
}
}
@@ -91,7 +91,7 @@ private fun resolveImportReference(file: GroovyFile, import: GroovyImport): Coll
return listOf(ElementResolveResult(resolved))
}
private fun GrCodeReferenceElement.resolveReference(): Collection<GroovyResolveResult> {
private fun GrCodeReferenceElement.resolveAsReference(): Collection<GroovyResolveResult> {
val name = referenceName ?: return emptyList()
if (canResolveToTypeParameter()) {