Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 110 for parenthesize (0.22 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/internal/types/testdata/examples/types.go

    	I0
    	I1[bool]
    	m(string)
    }
    
    func _() {
    	var x I3
    	x.m0()
    	x.m1(true)
    	x.m("foo")
    }
    
    type _ struct {
    	( /* ERROR "cannot parenthesize" */ int8)
    	( /* ERROR "cannot parenthesize" */ *int16)
    	*( /* ERROR "cannot parenthesize" */ int32)
    	List[int]
    
    	int8 /* ERROR "int8 redeclared" */
    	*int16 /* ERROR "int16 redeclared" */
    	List /* ERROR "List redeclared" */ [int]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:16:04 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    		c.To.goString(indent+2, "To: "))
    }
    
    func (c *Cast) prec() precedence {
    	return precCast
    }
    
    // The parenthesize function prints the string for val, wrapped in
    // parentheses if necessary.
    func parenthesize(ps *printState, val AST) {
    	paren := false
    	switch v := val.(type) {
    	case *Name, *InitializerList:
    	case *FunctionParam:
    		if ps.llvmStyle {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/parser.go

    			// *(T)
    			p.syntaxError("cannot parenthesize embedded type")
    			p.next()
    			typ = p.qualifiedName(nil)
    			p.got(_Rparen) // no need to complain if missing
    		} else {
    			// *T
    			typ = p.qualifiedName(nil)
    		}
    		tag := p.oliteral()
    		p.addField(styp, pos, nil, newIndirect(pos, typ), tag)
    
    	case _Lparen:
    		p.syntaxError("cannot parenthesize embedded type")
    		p.next()
    		var typ Expr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  5. src/go/parser/parser.go

    				}
    			} else {
    				// T P
    				typ = p.parseType()
    			}
    		}
    	case token.MUL:
    		star := p.pos
    		p.next()
    		if p.tok == token.LPAREN {
    			// *(T)
    			p.error(p.pos, "cannot parenthesize embedded type")
    			p.next()
    			typ = p.parseQualifiedIdent(nil)
    			// expect closing ')' but no need to complain if missing
    			if p.tok == token.RPAREN {
    				p.next()
    			}
    		} else {
    			// *T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  6. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/parenthesis.kt

    Anna Kozlova <******@****.***> 1717492092 +0200
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 14:04:46 UTC 2024
    - 127 bytes
    - Viewed (0)
  7. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/parenthesis.txt

    Anna Kozlova <******@****.***> 1717492092 +0200
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 14:04:46 UTC 2024
    - 342 bytes
    - Viewed (0)
  8. src/cmd/gofmt/testdata/typeswitch.input

    /*
    Parenthesized type switch expressions originally
    accepted by gofmt must continue to be rewritten
    into the correct unparenthesized form.
    
    Only type-switches that didn't declare a variable
    in the type switch type assertion and which
    contained only "expression-like" (named) types in their
    cases were permitted to have their type assertion parenthesized
    by go/parser (due to a weak predicate in the parser). All others
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 15 17:17:30 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  9. src/cmd/gofmt/testdata/typeswitch.golden

    /*
    Parenthesized type switch expressions originally
    accepted by gofmt must continue to be rewritten
    into the correct unparenthesized form.
    
    Only type-switches that didn't declare a variable
    in the type switch type assertion and which
    contained only "expression-like" (named) types in their
    cases were permitted to have their type assertion parenthesized
    by go/parser (due to a weak predicate in the parser). All others
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 15 17:17:30 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/callReceiverParens.txt

    expression: PARENTHESIZED
    text: (b)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Oct 05 15:06:52 UTC 2022
    - 61 bytes
    - Viewed (0)
Back to top