Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for RPAREN (0.1 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    				return
    			} else if next == ')' {
    				rparen := in.lex()
    				if in.peek().isEOL() {
    					// Empty block.
    					in.lex()
    					in.file.Stmt = append(in.file.Stmt, &LineBlock{
    						Start:  start,
    						Token:  tokens,
    						LParen: LParen{Pos: tok.pos},
    						RParen: RParen{Pos: rparen.pos},
    					})
    					return
    				}
    				// '( )' in the middle of the line, not a block.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/go/ast/import.go

    		d.Specs = specs
    
    		// Deduping can leave a blank line before the rparen; clean that up.
    		if len(d.Specs) > 0 {
    			lastSpec := d.Specs[len(d.Specs)-1]
    			lastLine := lineAt(fset, lastSpec.Pos())
    			rParenLine := lineAt(fset, d.Rparen)
    			for rParenLine > lastLine+1 {
    				rParenLine--
    				fset.File(d.Rparen).MergeLine(rParenLine)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/go/ast/ast.go

    		Rparen token.Pos // position of ")"
    	}
    
    	// A CallExpr node represents an expression followed by an argument list.
    	CallExpr struct {
    		Fun      Expr      // function expression
    		Lparen   token.Pos // position of "("
    		Args     []Expr    // function arguments; or nil
    		Ellipsis token.Pos // position of "..." (token.NoPos if there is no "...")
    		Rparen   token.Pos // position of ")"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  4. src/go/types/util.go

    func dddErrPos(call *ast.CallExpr) positioner { return atPos(call.Ellipsis) }
    
    // argErrPos returns positioner for reporting an invalid argument count.
    func argErrPos(call *ast.CallExpr) positioner { return inNode(call, call.Rparen) }
    
    // startPos returns the start position of node n.
    func startPos(n ast.Node) token.Pos { return n.Pos() }
    
    // endPos returns the position of the first character immediately after node n.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/go/types/generate_test.go

    						pos := n.Args[0].Pos()
    						fun := &ast.SelectorExpr{X: newIdent(pos, "posn"), Sel: newIdent(pos, "Pos")}
    						arg := &ast.CallExpr{Fun: fun, Lparen: pos, Args: nil, Ellipsis: token.NoPos, Rparen: pos}
    						n.Args[0] = arg
    						return false
    					}
    				case "addf":
    					// rewrite err.addf(pos, ...) to err.addf(posn, ...)
    					if isIdent(n.Args[0], "pos") {
    						pos := n.Args[0].Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. src/go/ast/example_test.go

    	//     38  .  .  .  .  .  .  .  .  .  Value: "\"Hello, World!\""
    	//     39  .  .  .  .  .  .  .  .  }
    	//     40  .  .  .  .  .  .  .  }
    	//     41  .  .  .  .  .  .  .  Ellipsis: -
    	//     42  .  .  .  .  .  .  .  Rparen: 4:25
    	//     43  .  .  .  .  .  .  }
    	//     44  .  .  .  .  .  }
    	//     45  .  .  .  .  }
    	//     46  .  .  .  .  Rbrace: 5:1
    	//     47  .  .  .  }
    	//     48  .  .  }
    	//     49  .  }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/go/doc/example.go

    				comments = append(comments, d.Doc)
    			}
    		}
    	}
    
    	// Synthesize import declaration.
    	importDecl := &ast.GenDecl{
    		Tok:    token.IMPORT,
    		Lparen: 1, // Need non-zero Lparen and Rparen so that printer
    		Rparen: 1, // treats this as a factored import.
    	}
    	importDecl.Specs = append(namedImports, blankImports...)
    
    	// Synthesize main function.
    	funcDecl := &ast.FuncDecl{
    		Name: ast.NewIdent("main"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. src/go/types/call.go

    		check.nonGeneric(nil, x)
    		if x.mode == invalid {
    			return conversion
    		}
    		T := x.typ
    		x.mode = invalid
    		switch n := len(call.Args); n {
    		case 0:
    			check.errorf(inNode(call, call.Rparen), WrongArgCount, "missing argument in conversion to %s", T)
    		case 1:
    			check.expr(nil, x, call.Args[0])
    			if x.mode != invalid {
    				if hasDots(call) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  9. src/text/template/parse/parse_test.go

    		"{{/*}}",
    		hasError, `comment1:1: unclosed comment`},
    	{"comment2",
    		"{{/*\nhello\n}}",
    		hasError, `comment2:1: unclosed comment`},
    	{"lparen",
    		"{{.X (1 2 3}}",
    		hasError, `unclosed left paren`},
    	{"rparen",
    		"{{.X 1 2 3 ) }}",
    		hasError, "unexpected right paren"},
    	{"rparen2",
    		"{{(.X 1 2 3",
    		hasError, `unclosed action`},
    	{"space",
    		"{{`x`3}}",
    		hasError, `in operand`},
    	{"idchar",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"BranchStmt.TokPos", Field, 0},
    		{"CallExpr", Type, 0},
    		{"CallExpr.Args", Field, 0},
    		{"CallExpr.Ellipsis", Field, 0},
    		{"CallExpr.Fun", Field, 0},
    		{"CallExpr.Lparen", Field, 0},
    		{"CallExpr.Rparen", Field, 0},
    		{"CaseClause", Type, 0},
    		{"CaseClause.Body", Field, 0},
    		{"CaseClause.Case", Field, 0},
    		{"CaseClause.Colon", Field, 0},
    		{"CaseClause.List", Field, 0},
    		{"ChanDir", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top