Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 107 for parenthesize (0.32 sec)

  1. 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)
  2. src/internal/types/testdata/fixedbugs/issue48008.go

    	case chan T /* ERROR "cannot use generic type" */ :
    
    	case T /* ERROR "cannot use generic type" */ , *T /* ERROR "cannot use generic type" */ :
    	}
    }
    
    // Make sure a parenthesized nil is ok.
    
    func _(x interface{}) {
    	switch x.(type) {
    	case ((nil)), int:
    	}
    }
    
    // Make sure we look for the predeclared nil.
    
    func _(x interface{}) {
    	type nil int
    	switch x.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/decls2/decls2b.go

    type T7 struct {}
    
    func (T7) m1() {}
    func ((T7)) m2() {}
    func ((*T7)) m3() {}
    func (x *(T7),) m4() {}
    func (x (*(T7)),) m5() {}
    func (x ((*((T7)))),) m6() {}
    
    // Check that methods with parenthesized receiver are actually present (issue #23130).
    var (
    	_ = T7.m1
    	_ = T7.m2
    	_ = (*T7).m3
    	_ = (*T7).m4
    	_ = (*T7).m5
    	_ = (*T7).m6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.9K 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/cmd/asm/internal/lex/slice.go

    func (s *Slice) Line() int {
    	return s.line
    }
    
    func (s *Slice) Col() int {
    	// TODO: Col is only called when defining a macro and all it cares about is increasing
    	// position to discover whether there is a blank before the parenthesis.
    	// We only get here if defining a macro inside a macro.
    	// This imperfect implementation means we cannot tell the difference between
    	//	#define A #define B(x) x
    	// and
    	//	#define A #define B (x) x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 29 22:49:50 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top