WIP: revert some annotation extraction to get proper tree in printast

This commit is contained in:
Tamas Vajk
2022-04-14 09:22:18 +02:00
committed by Chris Smowton
parent fed770fcd1
commit df595c05f2
3 changed files with 175 additions and 622 deletions

View File

@@ -238,7 +238,7 @@ open class KotlinFileExtractor(
addModifiers(id, "out")
}
extractAnnotations(tp, id)
//extractAnnotations(tp, id)
return id
}
}
@@ -820,7 +820,7 @@ open class KotlinFileExtractor(
extractTypeAccessRecursive(substitutedType, location, id, -1)
}
val syntheticParameterNames = isUnderscoreParameter(vp) || ((vp.parent as? IrFunction)?.let { hasSynthesizedParameterNames(it) } ?: true)
extractAnnotations(vp, id)
//extractAnnotations(vp, id)
return extractValueParameter(id, substitutedType, vp.name.asString(), location, parent, idx, useValueParameter(vp, parentSourceDeclaration), syntheticParameterNames, vp.isVararg, vp.isNoinline, vp.isCrossinline)
}
}
@@ -1360,7 +1360,7 @@ open class KotlinFileExtractor(
linesOfCode?.linesOfCodeInDeclaration(f, id)
extractAnnotations(f, id)
//extractAnnotations(f, id)
return id
}