Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for RPAREN (0.14 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/parser/parser.go

    		}
    	}
    
    	opening := p.expect(token.LPAREN)
    
    	var fields []*ast.Field
    	if p.tok != token.RPAREN {
    		fields = p.parseParameterList(nil, nil, token.RPAREN)
    	}
    
    	rparen := p.expect(token.RPAREN)
    	params = &ast.FieldList{Opening: opening, List: fields, Closing: rparen}
    
    	return
    }
    
    func (p *parser) parseResult() *ast.FieldList {
    	if p.trace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  3. src/go/printer/testdata/parser.go

    	if p.trace {
    		defer un(trace(p, "Parameters"))
    	}
    
    	var params []*ast.Field
    	lparen := p.expect(token.LPAREN)
    	if p.tok != token.RPAREN {
    		params = p.parseParameterList(scope, ellipsisOk)
    	}
    	rparen := p.expect(token.RPAREN)
    
    	return &ast.FieldList{lparen, params, rparen}
    }
    
    func (p *parser) parseResult(scope *ast.Scope) *ast.FieldList {
    	if p.trace {
    		defer un(trace(p, "Result"))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  4. 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)
  5. src/go/token/token.go

    	ASSIGN // =
    	NOT    // !
    
    	NEQ      // !=
    	LEQ      // <=
    	GEQ      // >=
    	DEFINE   // :=
    	ELLIPSIS // ...
    
    	LPAREN // (
    	LBRACK // [
    	LBRACE // {
    	COMMA  // ,
    	PERIOD // .
    
    	RPAREN    // )
    	RBRACK    // ]
    	RBRACE    // }
    	SEMICOLON // ;
    	COLON     // :
    	operator_end
    
    	keyword_beg
    	// Keywords
    	BREAK
    	CASE
    	CHAN
    	CONST
    	CONTINUE
    
    	DEFAULT
    	DEFER
    	ELSE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/modfile/print.go

    		// done
    
    	case *LParen:
    		p.printf("(")
    	case *RParen:
    		p.printf(")")
    
    	case *Line:
    		p.tokens(x.Token)
    
    	case *LineBlock:
    		p.tokens(x.Token)
    		p.printf(" ")
    		p.expr(&x.LParen)
    		p.margin++
    		for _, l := range x.Line {
    			p.newline()
    			p.expr(l)
    		}
    		p.margin--
    		p.newline()
    		p.expr(&x.RParen)
    	}
    
    	// Queue end-of-line comments for printing when we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 00:48:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. 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)
  8. src/go/printer/nodes.go

    		if paren {
    			p.print(token.RPAREN)
    		}
    
    		p.setPos(x.Lparen)
    		p.print(token.LPAREN)
    		if x.Ellipsis.IsValid() {
    			p.exprList(x.Lparen, x.Args, depth, 0, x.Ellipsis, false)
    			p.setPos(x.Ellipsis)
    			p.print(token.ELLIPSIS)
    			if x.Rparen.IsValid() && p.lineFor(x.Ellipsis) < p.lineFor(x.Rparen) {
    				p.print(token.COMMA, formfeed)
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top