All Downloads are FREE. Search and download functionalities are using the official Maven repository.

godot.annotation.processor.ext.ksDeclarationExt.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0-4.3.0
Show newest version
package godot.annotation.processor.ext

import com.google.devtools.ksp.symbol.KSClassDeclaration

fun KSClassDeclaration.hasCompilationErrors(): Boolean = superTypes
    .toList()
    .any { superTypeDeclaration -> superTypeDeclaration.resolve().isError }
    || this.asStarProjectedType().isError
    || this.getAllProperties().any { property -> property.type.resolve().isError }
    || this.getAllFunctions().any { function ->
        function.returnType?.resolve()?.isError == true || function.parameters.any { param -> param.type.resolve().isError }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy