From b79deafbc7db2e6a4bdf5465ac347868956b5edb Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Sun, 16 Aug 2020 22:32:29 +0300 Subject: [PATCH] FIR IDE: fix testdata --- .../testData/symbolPointer/classSecondaryConstructors.kt | 3 +++ idea/idea-frontend-fir/testData/symbolsByPsi/function.kt | 1 + .../testData/symbolsByPsi/functionWithTypeParams.kt | 1 + .../resolve/references/ClassObjectClassLiteralReference.kt | 1 - .../references/ClassObjectClassLiteralReferenceWithField.kt | 1 - 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/idea/idea-frontend-fir/testData/symbolPointer/classSecondaryConstructors.kt b/idea/idea-frontend-fir/testData/symbolPointer/classSecondaryConstructors.kt index 6aa4a3acd1d..ae8438177f5 100644 --- a/idea/idea-frontend-fir/testData/symbolPointer/classSecondaryConstructors.kt +++ b/idea/idea-frontend-fir/testData/symbolPointer/classSecondaryConstructors.kt @@ -13,6 +13,7 @@ KtFirConstructorSymbol: valueParameters: [] KtFirFunctionValueParameterSymbol: + hasDefaultValue: false isVararg: false name: x origin: SOURCE @@ -28,6 +29,7 @@ KtFirConstructorSymbol: valueParameters: Could not render due to java.lang.ClassCastException: org.jetbrains.kotlin.idea.frontend.api.fir.symbols.KtFirFunctionValueParameterSymbol cannot be cast to org.jetbrains.kotlin.idea.frontend.api.fir.symbols.KtFirConstructorValueParameterSymbol KtFirFunctionValueParameterSymbol: + hasDefaultValue: false isVararg: false name: y origin: SOURCE @@ -35,6 +37,7 @@ KtFirFunctionValueParameterSymbol: type: kotlin/Int KtFirFunctionValueParameterSymbol: + hasDefaultValue: false isVararg: false name: z origin: SOURCE diff --git a/idea/idea-frontend-fir/testData/symbolsByPsi/function.kt b/idea/idea-frontend-fir/testData/symbolsByPsi/function.kt index 38f0fc51271..9b6e794462a 100644 --- a/idea/idea-frontend-fir/testData/symbolsByPsi/function.kt +++ b/idea/idea-frontend-fir/testData/symbolsByPsi/function.kt @@ -3,6 +3,7 @@ fun foo(x: Int) {} // SYMBOLS: /* KtFirFunctionValueParameterSymbol: + hasDefaultValue: false isVararg: false name: x origin: SOURCE diff --git a/idea/idea-frontend-fir/testData/symbolsByPsi/functionWithTypeParams.kt b/idea/idea-frontend-fir/testData/symbolsByPsi/functionWithTypeParams.kt index eedf4596581..09c83853fd4 100644 --- a/idea/idea-frontend-fir/testData/symbolsByPsi/functionWithTypeParams.kt +++ b/idea/idea-frontend-fir/testData/symbolsByPsi/functionWithTypeParams.kt @@ -7,6 +7,7 @@ KtFirTypeParameterSymbol: origin: SOURCE KtFirFunctionValueParameterSymbol: + hasDefaultValue: false isVararg: false name: x origin: SOURCE diff --git a/idea/testData/resolve/references/ClassObjectClassLiteralReference.kt b/idea/testData/resolve/references/ClassObjectClassLiteralReference.kt index eb16fcfb4ce..27240a66b0a 100644 --- a/idea/testData/resolve/references/ClassObjectClassLiteralReference.kt +++ b/idea/testData/resolve/references/ClassObjectClassLiteralReference.kt @@ -1,4 +1,3 @@ -// IGNORE_FIR package t class A { diff --git a/idea/testData/resolve/references/ClassObjectClassLiteralReferenceWithField.kt b/idea/testData/resolve/references/ClassObjectClassLiteralReferenceWithField.kt index 0b4d649b1a3..10311ac660e 100644 --- a/idea/testData/resolve/references/ClassObjectClassLiteralReferenceWithField.kt +++ b/idea/testData/resolve/references/ClassObjectClassLiteralReferenceWithField.kt @@ -1,4 +1,3 @@ -// IGNORE_FIR package t class A {