Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 80 for parenthesize (0.42 sec)

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

                PREFIX_EXPRESSION -> tree.unsupported(node, UnsupportedLanguageFeature.PrefixExpression)
                OPERATION_REFERENCE -> tree.unsupported(node, UnsupportedLanguageFeature.UnsupportedOperator)
                PARENTHESIZED -> parenthesized(tree, node)
                LAMBDA_EXPRESSION -> tree.unsupported(node, UnsupportedLanguageFeature.FunctionDeclaration)
                THIS_EXPRESSION -> Element(This(tree.sourceData(node)))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  2. analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/components/KaAbstractResolver.kt

            val safeQualifiedExpression = parentOfType<KtSafeQualifiedExpression>() ?: return false
            return KtPsiUtil.deparenthesize(safeQualifiedExpression.receiverExpression) == KtPsiUtil.deparenthesize(this)
        }
    
        protected fun canBeResolvedAsCall(ktElement: KtElement): Boolean = when (ktElement) {
            is KtBinaryExpression -> ktElement.operationToken !in nonCallBinaryOperator
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/LightTreeUtil.kt

    import org.jetbrains.kotlin.KtNodeTypes.FUNCTION_LITERAL
    import org.jetbrains.kotlin.KtNodeTypes.LAMBDA_ARGUMENT
    import org.jetbrains.kotlin.KtNodeTypes.LAMBDA_EXPRESSION
    import org.jetbrains.kotlin.KtNodeTypes.PARENTHESIZED
    import org.jetbrains.kotlin.KtNodeTypes.SCRIPT
    import org.jetbrains.kotlin.com.intellij.lang.LighterASTNode
    import org.jetbrains.kotlin.com.intellij.lang.impl.PsiBuilderImpl
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KaFirResolver.kt

            if (this !is KtExpression) return null
            val calleeExpression = deparenthesize(this) ?: return null
            if (calleeExpression is KtCallExpression) return null
            val callExpression = parentOfType<KtCallExpression>() ?: return null
            if (deparenthesize(callExpression.calleeExpression) != calleeExpression) return null
            return callExpression
        }
    
        /**
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 73K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/ErrorParsingTest.kt

                    )
                )""".trimIndent()
            parse(code).assert(expected)
        }
    
        @Test
        fun `missing closing parenthesis in function argument`() {
            val code = "kotlin(\"plugin-id-1) ; kotlin(\"plugin-id-2\")"
    
            val expected = """
                ErroneousStatement (
                    MultipleFailures(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 09:41:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. src/go/types/errorcalls_test.go

    		case '(', '[', '{':
    			stack = append(stack, byte(ch))
    			continue
    		case ')':
    			open = '('
    		case ']':
    			open = '['
    		case '}':
    			open = '{'
    		default:
    			continue
    		}
    		// closing parenthesis/bracket must have matching opening
    		top := len(stack) - 1
    		if top < 0 || stack[top] != open {
    			return false
    		}
    		stack = stack[:top]
    	}
    	return len(stack) == 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. internal/s3select/unused-errors.go

    		message:    "Did not find the expected left parenthesis after CAST in the SQL expression.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errParseExpectedLeftParenValueConstructor(err error) *s3Error {
    	return &s3Error{
    		code:       "ParseExpectedLeftParenValueConstructor",
    		message:    "Did not find expected the left parenthesis in the SQL expression.",
    		statusCode: 400,
    		cause:      err,
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 20 08:16:35 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. src/regexp/syntax/simplify_test.go

    	// The empty string must be preserved inside parens in order
    	// to make submatches work right, so these tests are less
    	// interesting than they might otherwise be. String inserts
    	// explicit (?:) in place of non-parenthesized empty strings,
    	// to make them easier to spot for other parsers.
    	{`(a|b|c|)`, `([a-c]|(?:))`},
    	{`(a|b|)`, `([ab]|(?:))`},
    	{`(|)`, `()`},
    	{`a()`, `a()`},
    	{`(()|())`, `(()|())`},
    	{`(a|)`, `(a|(?:))`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/parse.go

    	case scanner.Int, scanner.Float, scanner.String, scanner.Char, '+', '-', '~':
    		haveConstant = true
    	case '(':
    		// Could be parenthesized expression or (R). Must be something, though.
    		tok := p.next()
    		if tok.ScanToken == scanner.EOF {
    			p.errorf("missing right parenthesis")
    			return
    		}
    		rname := tok.String()
    		p.back()
    		haveConstant = !p.atStartOfRegister(rname)
    		if !haveConstant {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/errorcalls_test.go

    		case '(', '[', '{':
    			stack = append(stack, byte(ch))
    			continue
    		case ')':
    			open = '('
    		case ']':
    			open = '['
    		case '}':
    			open = '{'
    		default:
    			continue
    		}
    		// closing parenthesis/bracket must have matching opening
    		top := len(stack) - 1
    		if top < 0 || stack[top] != open {
    			return false
    		}
    		stack = stack[:top]
    	}
    	return len(stack) == 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top