Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for parenthesized (0.58 sec)

  1. src/text/template/exec_test.go

    	{"field on interface", "{{.foo}}", "<no value>", nil, true},
    	{"field on parenthesized interface", "{{(.).foo}}", "<no value>", nil, true},
    
    	// Issue 31810: Parenthesized first element of pipeline with arguments.
    	// See also TestIssue31810.
    	{"unparenthesized non-function", "{{1 2}}", "", nil, false},
    	{"parenthesized non-function", "{{(1) 2}}", "", nil, false},
    	{"parenthesized non-function with no args", "{{(1)}}", "1", nil, true}, // This is fine.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  2. src/html/template/exec_test.go

    	{"field on parenthesized interface", "{{(.).foo}}", "", nil, true}, // NOTE: <no value> in text/template
    
    	// Issue 31810: Parenthesized first element of pipeline with arguments.
    	// See also TestIssue31810.
    	{"unparenthesized non-function", "{{1 2}}", "", nil, false},
    	{"parenthesized non-function", "{{(1) 2}}", "", nil, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  3. src/go/printer/nodes.go

    	case *ast.ParenExpr:
    		// name(x) combines but we are making sure at
    		// the call site that x is never parenthesized.
    		panic("unexpected parenthesized expression")
    	}
    	return false
    }
    
    // isTypeElem reports whether x is a (possibly parenthesized) type element expression.
    // The result is false if x could be a type element OR an ordinary (value) expression.
    func isTypeElem(x ast.Expr) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K 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

    		x := &ast.BasicLit{ValuePos: p.pos, Kind: p.tok, Value: p.lit}
    		p.next()
    		return x
    
    	case token.LPAREN:
    		lparen := p.pos
    		p.next()
    		p.exprLev++
    		x := p.parseRhs() // types may be parenthesized: (some type)
    		p.exprLev--
    		rparen := p.expect(token.RPAREN)
    		return &ast.ParenExpr{Lparen: lparen, X: x, Rparen: rparen}
    
    	case token.FUNC:
    		return p.parseFuncTypeOrLit()
    	}
    
    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. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	"az": {"alignof ", 1, precUnary},
    	"cc": {"const_cast", 2, precPostfix},
    	"cl": {"()", 2, precPostfix},
    	// cp is not in the ABI but is used by clang "when the call
    	// would use ADL except for being parenthesized."
    	"cp": {"()", 2, precPostfix},
    	"cm": {",", 2, precComma},
    	"co": {"~", 1, precUnary},
    	"dV": {"/=", 2, precAssign},
    	"dX": {"[...]=", 3, precAssign},
    	"da": {"delete[] ", 1, precUnary},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  7. src/go/printer/testdata/parser.go

    	if p.trace {
    		defer un(trace(p, "VarList"))
    	}
    
    	// a list of identifiers looks like a list of type names
    	for {
    		// parseVarType accepts any type (including parenthesized ones)
    		// even though the syntax does not permit them here: we
    		// accept them all for more robust parsing and complain
    		// afterwards
    		list = append(list, p.parseVarType(isParam))
    		if p.tok != token.COMMA {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
Back to top