New J2K: Add annotations to the import collector
This commit is contained in:
committed by
Ilya Kirillov
parent
0610583b80
commit
e3ee0dac6c
@@ -115,9 +115,14 @@ class ImportStatementConversion : RecursiveApplicableConversionBase() {
|
||||
methodCallExpression.acceptChildren(this)
|
||||
}
|
||||
|
||||
override fun visitAnnotation(annotation: JKAnnotation) {
|
||||
addSymbol(annotation.classSymbol)
|
||||
annotation.acceptChildren(this)
|
||||
}
|
||||
|
||||
override fun visitClassLiteralExpression(classLiteralExpression: JKClassLiteralExpression) {
|
||||
val type = classLiteralExpression.classType.type
|
||||
if (type is JKClassType){
|
||||
if (type is JKClassType) {
|
||||
addSymbol(type.classReference)
|
||||
}
|
||||
classLiteralExpression.acceptChildren(this)
|
||||
|
||||
Reference in New Issue
Block a user