Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 129 for parenthesize (0.32 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/go/printer/testdata/expressions.golden

    		a...,
    	)
    	_ = append(
    		s,
    		a...,
    	)
    }
    
    // Literal function types in conversions must be parenthesized;
    // for now go/parser accepts the unparenthesized form where it
    // is non-ambiguous.
    func _() {
    	// these conversions should be rewritten to look
    	// the same as the parenthesized conversions below
    	_ = (func())(nil)
    	_ = (func(x int) float)(nil)
    	_ = (func() func() func())(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  5. src/go/printer/testdata/expressions.raw

    		a...,
    	)
    	_ = append(
    		s,
    		a...,
    	)
    }
    
    // Literal function types in conversions must be parenthesized;
    // for now go/parser accepts the unparenthesized form where it
    // is non-ambiguous.
    func _() {
    	// these conversions should be rewritten to look
    	// the same as the parenthesized conversions below
    	_ = (func())(nil)
    	_ = (func(x int) float)(nil)
    	_ = (func() func() func())(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  6. 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)
  7. src/go/printer/testdata/expressions.input

    		a...,
    	)
    	_ = append(
    		s,
    		a...,
    	)
    }
    
    // Literal function types in conversions must be parenthesized;
    // for now go/parser accepts the unparenthesized form where it
    // is non-ambiguous.
    func _() {
    	// these conversions should be rewritten to look
    	// the same as the parenthesized conversions below
    	_ = func()()(nil)
    	_ = func(x int)(float)(nil)
    	_ = func() func() func()()(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.1K 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