Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkInScope (0.14 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/FunctionExtractor.kt

            configureLambdas: ConfigureLambdaHandler
        ): SchemaMemberFunction {
            val thisTypeRef = inType.toDataTypeRef()
    
            val returnType = function.returnType
    
            checkInScope(returnType, preIndex)
            val returnClass = function.returnType.classifier as KClass<*>
            val fnParams = function.parameters
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 11:58:18 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/schemaBuildingUtils.kt

            is KClass<*> -> DataTypeRefInternal.DefaultName(DefaultFqName.parse(checkNotNull(qualifiedName)))
            else -> error("unexpected type")
        }
    
    
    internal
    fun checkInScope(
        type: KType,
        typeScope: DataSchemaBuilder.PreIndex
    ) {
        if (type.classifier?.isInScope(typeScope) != true) {
            error("type $type used in a function is not in schema scope")
        }
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top