Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isKotlinInfixFunction (0.12 sec)

  1. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/KotlinModifiersBreakingChangeRule.groovy

            def oldIsOperator = metadata.isKotlinOperatorFunction(oldMethod)
            def newIsOperator = metadata.isKotlinOperatorFunction(newMethod)
    
            def oldIsInfix = metadata.isKotlinInfixFunction(oldMethod)
            def newIsInfix = metadata.isKotlinInfixFunction(newMethod)
    
            def operatorChanged = oldIsOperator != newIsOperator
            def infixChanged = oldIsInfix != newIsInfix
    
            if (operatorChanged || infixChanged) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

        fun isKotlinOperatorFunction(ctMethod: CtMethod): Boolean =
            hasAttribute(ctMethod, AttributePredicate.functionAttribute(KmFunction::isOperator))
    
        fun isKotlinInfixFunction(ctMethod: CtMethod): Boolean =
            hasAttribute(ctMethod, AttributePredicate.functionAttribute(KmFunction::isInfix))
    
        private
        fun hasAttribute(ctClass: CtClass, predicate: AttributePredicate): Boolean =
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 12:41:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top