Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 101 for parenthesized (0.29 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/cmd/go/internal/modcmd/why.go

    package or module. Subsequent lines give a path through the import
    graph, one package per line. If the package or module is not
    referenced from the main module, the stanza will display a single
    parenthesized note indicating that fact.
    
    For example:
    
    	$ go mod why golang.org/x/text/language golang.org/x/text/encoding
    	# golang.org/x/text/language
    	rsc.io/quote
    	rsc.io/sampler
    	golang.org/x/text/language
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 21:32:23 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/return.go

    		*syntax.AssignStmt, *syntax.CallStmt:
    		// no chance
    
    	case *syntax.LabeledStmt:
    		return check.isTerminating(s.Stmt, s.Label.Value)
    
    	case *syntax.ExprStmt:
    		// calling the predeclared (possibly parenthesized) panic() function is terminating
    		if call, ok := syntax.Unparen(s.X).(*syntax.CallExpr); ok && check.isPanic[call] {
    			return true
    		}
    
    	case *syntax.ReturnStmt:
    		return true
    
    	case *syntax.BranchStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. src/go/types/return.go

    		*ast.RangeStmt:
    		// no chance
    
    	case *ast.LabeledStmt:
    		return check.isTerminating(s.Stmt, s.Label.Name)
    
    	case *ast.ExprStmt:
    		// calling the predeclared (possibly parenthesized) panic() function is terminating
    		if call, ok := ast.Unparen(s.X).(*ast.CallExpr); ok && check.isPanic[call] {
    			return true
    		}
    
    	case *ast.ReturnStmt:
    		return true
    
    	case *ast.BranchStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. 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)
  6. test/ken/rob2.go

    		} else {
    			token = 'A'
    		}
    	}
    }
    
    func Expect(c int) {
    	if token != c {
    		print("parse error: expected ", c, "\n")
    		panic("parse")
    	}
    	NextToken()
    }
    
    // Parse a non-parenthesized list up to a closing paren or EOF
    func ParseList() *Slist {
    	var slist, retval *Slist
    
    	slist = new(Slist)
    	slist.list.car = nil
    	slist.list.cdr = nil
    	slist.isatom = false
    	slist.isstring = false
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.3K bytes
    - Viewed (0)
  7. 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)
  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/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)
  10. 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)
Back to top