Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LPAREN (0.13 sec)

  1. 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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  2. src/go/parser/parser.go

    	case token.MAP:
    		return p.parseMapType()
    	case token.CHAN, token.ARROW:
    		return p.parseChanType()
    	case token.LPAREN:
    		lparen := p.pos
    		p.next()
    		typ := p.parseType()
    		rparen := p.expect(token.RPAREN)
    		return &ast.ParenExpr{Lparen: lparen, X: typ, Rparen: rparen}
    	}
    
    	// no type found
    	return nil
    }
    
    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/nodes.go

    		case *ast.ChanType:
    			paren = t.Dir == ast.RECV
    		}
    		if paren {
    			p.print(token.LPAREN)
    		}
    		wasIndented := p.possibleSelectorExpr(x.Fun, token.HighestPrec, depth)
    		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)
    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/cgo/gcc.go

    					break
    				}
    			}
    
    			return
    		}
    
    		call, ok := (*px).(*ast.CallExpr)
    		if !ok {
    			return
    		}
    
    		for _, c := range f.Calls {
    			if !c.Done && c.Call.Lparen == call.Lparen {
    				cstr, nu := p.rewriteCall(f, c)
    				if cstr != "" {
    					// Smuggle the rewritten call through an ident.
    					*px = ast.NewIdent(cstr)
    					if nu {
    						needsUnsafe = true
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top