Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 956c479

Browse files
smowtonigfoo
authored andcommitted
Document TypeResult
1 parent ccf21b7 commit 956c479

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

java/kotlin-extractor/src/main/kotlin/KotlinExtractorExtension.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,18 @@ open class KotlinUsesExtractor(
324324
}
325325

326326
data class UseClassInstanceResult(val typeResult: TypeResult<DbClassorinterface>, val javaClass: IrClass)
327+
/**
328+
* A triple of a type's database label, its signature for use in callable signatures, and its short name for use
329+
* in all tables that provide a user-facing type name.
330+
*
331+
* `signature` is a Java primitive name (e.g. "int"), a fully-qualified class name ("package.OuterClass.InnerClass"),
332+
* or an array ("componentSignature[]")
333+
* Type variables have the signature of their upper bound.
334+
* Type arguments and anonymous types do not have a signature.
335+
*
336+
* `shortName` is a Java primitive name (e.g. "int"), a class short name with Java-style type arguments ("InnerClass<E>" or
337+
* "OuterClass<ConcreteArgument>" or "OtherClass<? extends Bound>") or an array ("componentShortName[]").
338+
*/
327339
data class TypeResult<out LabelType>(val id: Label<out LabelType>, val signature: String?, val shortName: String)
328340
data class TypeResults(val javaResult: TypeResult<DbType>, val kotlinResult: TypeResult<DbKt_type>)
329341

0 commit comments

Comments
 (0)