Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getFirstChildExpressionUnwrapped (0.47 sec)

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

    
    internal
    fun FlyweightCapableTreeStructure<LighterASTNode>.getFirstChildExpressionUnwrapped(node: LighterASTNode): LighterASTNode? {
        val firstChild = children(node).firstOrNull { it: LighterASTNode -> it.isExpression() } ?: return null
        return if (firstChild.tokenType == PARENTHESIZED) {
            getFirstChildExpressionUnwrapped(firstChild)
        } else {
            firstChild
        }
    }
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/GrammarToTree.kt

                            if (isEffectiveSelector) {
                                val callExpressionCallee = if (tokenType == CALL_EXPRESSION) tree.getFirstChildExpressionUnwrapped(it) else null
                                if (tokenType is KtNameReferenceExpressionElementType) {
                                    referenceSelector = checkForFailure(referenceExpression(it))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top