[FIR] Typing for annotation calls
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c168c22fba
commit
20ba15a429
+5
@@ -668,6 +668,11 @@ open class FirBodyResolveTransformer(val session: FirSession, val implicitTypeOn
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun transformAnnotationCall(annotationCall: FirAnnotationCall, data: Any?): CompositeTransformResult<FirStatement> {
|
||||||
|
annotationCall.resultType = annotationCall.annotationTypeRef
|
||||||
|
return (annotationCall.transformChildren(this, data) as FirStatement).compose()
|
||||||
|
}
|
||||||
|
|
||||||
override fun transformNamedFunction(namedFunction: FirNamedFunction, data: Any?): CompositeTransformResult<FirDeclaration> {
|
override fun transformNamedFunction(namedFunction: FirNamedFunction, data: Any?): CompositeTransformResult<FirDeclaration> {
|
||||||
if (namedFunction.returnTypeRef !is FirImplicitTypeRef && implicitTypeOnly) return namedFunction.compose()
|
if (namedFunction.returnTypeRef !is FirImplicitTypeRef && implicitTypeOnly) return namedFunction.compose()
|
||||||
if (namedFunction.returnTypeRef is FirImplicitTypeRef) {
|
if (namedFunction.returnTypeRef is FirImplicitTypeRef) {
|
||||||
|
|||||||
Reference in New Issue
Block a user