Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for parenthesize (0.32 sec)

  1. src/go/parser/short_test.go

    	`package p; type _ struct{ ( /* ERROR "cannot parenthesize embedded type" */ int) }`,
    	`package p; type _ struct{ ( /* ERROR "cannot parenthesize embedded type" */ []byte) }`,
    	`package p; type _ struct{ *( /* ERROR "cannot parenthesize embedded type" */ int) }`,
    	`package p; type _ struct{ *( /* ERROR "cannot parenthesize embedded type" */ []byte) }`,
    
    	// go.dev/issue/8656
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. src/go/ast/ast.go

    		Incomplete bool      // true if (source) expressions are missing in the Elts list
    	}
    
    	// A ParenExpr node represents a parenthesized expression.
    	ParenExpr struct {
    		Lparen token.Pos // position of "("
    		X      Expr      // parenthesized expression
    		Rparen token.Pos // position of ")"
    	}
    
    	// A SelectorExpr node represents an expression followed by a selector.
    	SelectorExpr struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/go/types/builtins_test.go

    			fun = call.Fun
    			n++
    		}
    	}
    	if n != 1 {
    		t.Errorf("%s: got %d CallExprs; want 1", src0, n)
    		return
    	}
    
    	// check recorded types for fun and descendents (may be parenthesized)
    	for {
    		// the recorded type for the built-in must match the wanted signature
    		typ := types[fun].Type
    		if typ == nil {
    			t.Errorf("%s: no type recorded for %s", src0, ExprString(fun))
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/builtins_test.go

    			fun = call.Fun
    			n++
    		}
    	}
    	if n != 1 {
    		t.Errorf("%s: got %d CallExprs; want 1", src0, n)
    		return
    	}
    
    	// check recorded types for fun and descendents (may be parenthesized)
    	for {
    		// the recorded type for the built-in must match the wanted signature
    		typ := types[fun].Type
    		if typ == nil {
    			t.Errorf("%s: no type recorded for %s", src0, ExprString(fun))
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. src/regexp/regexp.go

    // successive submatches of the expression. Submatches are matches of
    // parenthesized subexpressions (also known as capturing groups) within the
    // regular expression, numbered from left to right in order of opening
    // parenthesis. Submatch 0 is the match of the entire expression, submatch 1 is
    // the match of the first parenthesized subexpression, and so on.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KaFe10Resolver.kt

            if (!canBeResolvedAsCall(psi)) return null
    
            val parentBinaryExpression = psi.parentOfType<KtBinaryExpression>()
            val lhs = KtPsiUtil.deparenthesize(parentBinaryExpression?.left)
            val unwrappedPsi = KtPsiUtil.deparenthesize(psi as? KtExpression) ?: psi
    
            if (parentBinaryExpression != null &&
                parentBinaryExpression.operationToken == KtTokens.EQ &&
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top