forked from JetBrains/kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cls] save parameter name for functional types in stub
to make it available for deserialized Fir
- Loading branch information
Showing
9 changed files
with
110 additions
and
20 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...ed/decompiler-to-file-stubs/testData/additionalClsStubInfo/ParameterName/ParameterName.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package test | ||
|
||
class ParameterName { | ||
inline fun <A, B> foo(crossinline block: (input: A, state: B) -> Unit) {} | ||
} |
39 changes: 39 additions & 0 deletions
39
...d/decompiler-to-file-stubs/testData/additionalClsStubInfo/ParameterName/ParameterName.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
PsiJetFileStubImpl[package=test] | ||
KotlinStub$PACKAGE_DIRECTIVE | ||
KotlinStub$REFERENCE_EXPRESSION[referencedName=test] | ||
KotlinStub$IMPORT_LIST | ||
KotlinStub$CLASS[classId=test/ParameterName, fqName=test.ParameterName, isEnumEntry=false, isInterface=false, isLocal=false, isTopLevel=true, name=ParameterName, superNames=[]] | ||
KotlinStub$MODIFIER_LIST[public final] | ||
KotlinStub$PRIMARY_CONSTRUCTOR[fqName=null, hasBody=false, isDelegatedCallToThis=false, isExtension=false, isTopLevel=false, name=ParameterName] | ||
KotlinStub$MODIFIER_LIST[public] | ||
KotlinStub$VALUE_PARAMETER_LIST | ||
KotlinStub$CLASS_BODY | ||
KotlinStub$FUN[fqName=test.ParameterName.foo, hasBlockBody=true, hasBody=true, hasTypeParameterListBeforeFunctionName=true, isExtension=false, isTopLevel=false, mayHaveContract=false, name=foo] | ||
KotlinStub$MODIFIER_LIST[public final inline] | ||
KotlinStub$TYPE_PARAMETER_LIST | ||
KotlinStub$TYPE_PARAMETER[fqName=null, isInVariance=false, isOutVariance=false, name=A] | ||
KotlinStub$TYPE_PARAMETER[fqName=null, isInVariance=false, isOutVariance=false, name=B] | ||
KotlinStub$VALUE_PARAMETER_LIST | ||
KotlinStub$VALUE_PARAMETER[fqName=null, hasDefaultValue=false, hasValOrVar=false, isMutable=false, name=block] | ||
KotlinStub$MODIFIER_LIST[crossinline] | ||
KotlinStub$TYPE_REFERENCE | ||
KotlinStub$FUNCTION_TYPE | ||
KotlinStub$VALUE_PARAMETER_LIST | ||
KotlinStub$VALUE_PARAMETER[fqName=null, hasDefaultValue=false, hasValOrVar=false, isMutable=false, name=null] paramNameByAnnotation: input | ||
KotlinStub$TYPE_REFERENCE | ||
KotlinStub$USER_TYPE | ||
KotlinStub$REFERENCE_EXPRESSION[referencedName=A] | ||
KotlinStub$VALUE_PARAMETER[fqName=null, hasDefaultValue=false, hasValOrVar=false, isMutable=false, name=null] paramNameByAnnotation: state | ||
KotlinStub$TYPE_REFERENCE | ||
KotlinStub$USER_TYPE | ||
KotlinStub$REFERENCE_EXPRESSION[referencedName=B] | ||
KotlinStub$TYPE_REFERENCE | ||
KotlinStub$USER_TYPE | ||
KotlinStub$USER_TYPE | ||
KotlinStub$REFERENCE_EXPRESSION[referencedName=kotlin] | ||
KotlinStub$REFERENCE_EXPRESSION[referencedName=Unit] | ||
KotlinStub$TYPE_REFERENCE | ||
KotlinStub$USER_TYPE | ||
KotlinStub$USER_TYPE | ||
KotlinStub$REFERENCE_EXPRESSION[referencedName=kotlin] | ||
KotlinStub$REFERENCE_EXPRESSION[referencedName=Unit] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
.../org/jetbrains/kotlin/analysis/decompiler/stub/files/AdditionalStubInfoTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters