J2K: HighlightingVisitor, AfterAnalysisHighlightingVisitor

This commit is contained in:
Mikhail Glukhikh
2017-06-08 19:03:13 +03:00
parent 44e727b75c
commit f225d8dea5
2 changed files with 10 additions and 21 deletions
@@ -14,15 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.jetbrains.kotlin.idea.highlighter; package org.jetbrains.kotlin.idea.highlighter
import com.intellij.lang.annotation.AnnotationHolder; import com.intellij.lang.annotation.AnnotationHolder
import org.jetbrains.kotlin.psi.KtVisitorVoid; import org.jetbrains.kotlin.resolve.BindingContext
public abstract class HighlightingVisitor extends KtVisitorVoid { internal abstract class AfterAnalysisHighlightingVisitor protected constructor(
protected AnnotationHolder holder; holder: AnnotationHolder, protected var bindingContext: BindingContext
) : HighlightingVisitor(holder)
protected HighlightingVisitor(AnnotationHolder holder) {
this.holder = holder;
}
}
@@ -14,16 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.jetbrains.kotlin.idea.highlighter; package org.jetbrains.kotlin.idea.highlighter
import com.intellij.lang.annotation.AnnotationHolder; import com.intellij.lang.annotation.AnnotationHolder
import org.jetbrains.kotlin.resolve.BindingContext; import org.jetbrains.kotlin.psi.KtVisitorVoid
abstract class AfterAnalysisHighlightingVisitor extends HighlightingVisitor { abstract class HighlightingVisitor protected constructor(protected var holder: AnnotationHolder) : KtVisitorVoid()
protected BindingContext bindingContext;
protected AfterAnalysisHighlightingVisitor(AnnotationHolder holder, BindingContext bindingContext) {
super(holder);
this.bindingContext = bindingContext;
}
}