mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Kotlin: Extract type alias doc comments
This commit is contained in:
@@ -170,6 +170,7 @@ open class KotlinFileExtractor(
|
||||
is IrProperty -> return getPropertyLabel(element)
|
||||
is IrField -> return getFieldLabel(element)
|
||||
is IrEnumEntry -> return getEnumEntryLabel(element)
|
||||
is IrTypeAlias -> return getTypeAliasLabel(element)
|
||||
|
||||
// Fresh entities:
|
||||
is IrBody -> return null
|
||||
|
||||
@@ -1574,7 +1574,7 @@ open class KotlinUsesExtractor(
|
||||
fun useEnumEntry(ee: IrEnumEntry): Label<out DbField> =
|
||||
tw.getLabelFor(getEnumEntryLabel(ee))
|
||||
|
||||
private fun getTypeAliasLabel(ta: IrTypeAlias): String {
|
||||
fun getTypeAliasLabel(ta: IrTypeAlias): String {
|
||||
val parentId = useDeclarationParent(ta.parent, true)
|
||||
return "@\"type_alias;{$parentId};${ta.name.asString()}\""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user