[VISUALIZER] Remove ignore directive from correct test files
This commit is contained in:
committed by
TeamCityServer
parent
59416f447e
commit
13ef126d4c
+2
-2
@@ -254,8 +254,8 @@ class FirVisualizer(private val firFile: FirFile) : BaseRenderer() {
|
|||||||
expression.children.filter { it.node.elementType != KtNodeTypes.REFERENCE_EXPRESSION }.forEach { psi ->
|
expression.children.filter { it.node.elementType != KtNodeTypes.REFERENCE_EXPRESSION }.forEach { psi ->
|
||||||
when (psi) {
|
when (psi) {
|
||||||
is KtLambdaArgument -> {
|
is KtLambdaArgument -> {
|
||||||
val firLambda = psi.firstOfType<FirLambdaArgumentExpression>()?.expression as FirAnonymousFunction
|
val firLambda = psi.firstOfType<FirLambdaArgumentExpression>()?.expression as? FirAnonymousFunction
|
||||||
firLambda.receiverTypeRef?.let {
|
firLambda?.receiverTypeRef?.let {
|
||||||
lastCallWithLambda = psi.getLambdaExpression()?.firstOfType<FirLabel>()?.name
|
lastCallWithLambda = psi.getLambdaExpression()?.firstOfType<FirLabel>()?.name
|
||||||
implicitReceivers += it
|
implicitReceivers += it
|
||||||
psi.accept(this)
|
psi.accept(this)
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
abstract class A {
|
abstract class A {
|
||||||
abstract class Nested
|
abstract class Nested
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
object A {
|
object A {
|
||||||
constructor()
|
constructor()
|
||||||
init {}
|
init {}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
open class Base<T>(val x: T)
|
open class Base<T>(val x: T)
|
||||||
|
|
||||||
// constructor Base<T>(T)
|
// constructor Base<T>(T)
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
fun test() {
|
fun test() {
|
||||||
// <anonymous>
|
// <anonymous>
|
||||||
// │
|
// │
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
import my.println
|
import my.println
|
||||||
|
|
||||||
enum class Order {
|
enum class Order {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
interface Some
|
interface Some
|
||||||
|
|
||||||
object O1 : Some
|
object O1 : Some
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
// T fun (() -> T).invoke(): T
|
// T fun (() -> T).invoke(): T
|
||||||
// │ │
|
// │ │
|
||||||
fun <T> simpleRun(f: () -> T): T = f()
|
fun <T> simpleRun(f: () -> T): T = f()
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
class NoPrimary {
|
class NoPrimary {
|
||||||
// String
|
// String
|
||||||
// │
|
// │
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
//constructor annotation/Target(vararg annotation/AnnotationTarget)
|
//constructor annotation/Target(vararg annotation/AnnotationTarget)
|
||||||
//│ enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
//│ enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||||
//│ │ enum entry annotation/AnnotationTarget.EXPRESSION
|
//│ │ enum entry annotation/AnnotationTarget.EXPRESSION
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// fun (Int).plus(Int): Int
|
// fun (Int).plus(Int): Int
|
||||||
// Int │ distance.y: Int
|
// Int │ distance.y: Int
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
//WITH_RUNTIME
|
//WITH_RUNTIME
|
||||||
package test
|
package test
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
annotation class Ann1(val arr: IntArray)
|
annotation class Ann1(val arr: IntArray)
|
||||||
|
|
||||||
annotation class Ann2(val arr: DoubleArray)
|
annotation class Ann2(val arr: DoubleArray)
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
data class Some(val first: Int, val second: Double, val third: String)
|
data class Some(val first: Int, val second: Double, val third: String)
|
||||||
|
|
||||||
fun foo(some: Some) {
|
fun foo(some: Some) {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
fun foo() {
|
fun foo() {
|
||||||
// Int
|
// Int
|
||||||
// │fun (Int).rangeTo(Int): ranges/IntRange
|
// │fun (Int).rangeTo(Int): ranges/IntRange
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
// Nothing?
|
// Nothing?
|
||||||
// │ Nothing?
|
// │ Nothing?
|
||||||
// │ │
|
// │ │
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
class WithInit(x: Int) {
|
class WithInit(x: Int) {
|
||||||
// Int
|
// Int
|
||||||
// │
|
// │
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
fun simple() {
|
fun simple() {
|
||||||
// Int Int
|
// Int Int
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
fun test() {
|
fun test() {
|
||||||
// class Array<T>: Any, Cloneable, java/io/Serializable
|
// class Array<T>: Any, Cloneable, java/io/Serializable
|
||||||
// │
|
// │
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
interface A {
|
interface A {
|
||||||
fun foo() {}
|
fun foo() {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
class Some {
|
class Some {
|
||||||
// Int
|
// Int
|
||||||
// │ Int
|
// │ Int
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
fun foo() {
|
fun foo() {
|
||||||
// Int Int
|
// Int Int
|
||||||
// │ │
|
// │ │
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
fun foo(limit: Int) {
|
fun foo(limit: Int) {
|
||||||
// Int Int
|
// Int Int
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
interface Base {
|
interface Base {
|
||||||
fun printMessage()
|
fun printMessage()
|
||||||
fun printMessageLine()
|
fun printMessageLine()
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
package p
|
package p
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
package org.jetbrains.kotlin.test
|
package org.jetbrains.kotlin.test
|
||||||
|
|
||||||
// Int Int
|
// Int Int
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// FIR_IGNORE
|
|
||||||
interface Source<out T> {
|
interface Source<out T> {
|
||||||
fun nextT(): T
|
fun nextT(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -20,7 +20,7 @@ import java.io.File
|
|||||||
|
|
||||||
abstract class AbstractFirVisualizer : AbstractVisualizer() {
|
abstract class AbstractFirVisualizer : AbstractVisualizer() {
|
||||||
override val frontendKind: FrontendKind<*> = FrontendKinds.FIR
|
override val frontendKind: FrontendKind<*> = FrontendKinds.FIR
|
||||||
override val frontendFacade: Constructor<FrontendFacade<*>> = { FirFrontendFacade(it) }
|
override val frontendFacade: Constructor<FrontendFacade<*>> = ::FirFrontendFacade
|
||||||
|
|
||||||
override val handler: Constructor<FrontendOutputHandler<*>> = {
|
override val handler: Constructor<FrontendOutputHandler<*>> = {
|
||||||
object : FirAnalysisHandler(it) {
|
object : FirAnalysisHandler(it) {
|
||||||
@@ -35,7 +35,7 @@ abstract class AbstractFirVisualizer : AbstractVisualizer() {
|
|||||||
if (expectedText[0].startsWith("// FIR_IGNORE")) {
|
if (expectedText[0].startsWith("// FIR_IGNORE")) {
|
||||||
Assert.assertFalse(
|
Assert.assertFalse(
|
||||||
"Files are identical, please delete ignore directive",
|
"Files are identical, please delete ignore directive",
|
||||||
expectedText.filterIndexed { index, _ -> index > 0 }.joinToString("\n") == firRenderResult
|
expectedText.drop(1).joinToString("\n") == firRenderResult.trim()
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ import java.io.File
|
|||||||
|
|
||||||
abstract class AbstractPsiVisualizer : AbstractVisualizer() {
|
abstract class AbstractPsiVisualizer : AbstractVisualizer() {
|
||||||
override val frontendKind: FrontendKind<*> = FrontendKinds.ClassicFrontend
|
override val frontendKind: FrontendKind<*> = FrontendKinds.ClassicFrontend
|
||||||
override val frontendFacade: Constructor<FrontendFacade<*>> = { ClassicFrontendFacade(it) }
|
override val frontendFacade: Constructor<FrontendFacade<*>> = ::ClassicFrontendFacade
|
||||||
|
|
||||||
override val handler: Constructor<FrontendOutputHandler<*>> = {
|
override val handler: Constructor<FrontendOutputHandler<*>> = {
|
||||||
object : ClassicFrontendAnalysisHandler(it) {
|
object : ClassicFrontendAnalysisHandler(it) {
|
||||||
|
|||||||
Reference in New Issue
Block a user