Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for tryVarType (0.21 sec)

  1. src/go/printer/testdata/parser.go

    	if p.trace {
    		defer un(trace(p, "PointerType"))
    	}
    
    	star := p.expect(token.MUL)
    	base := p.parseType()
    
    	return &ast.StarExpr{star, base}
    }
    
    func (p *parser) tryVarType(isParam bool) ast.Expr {
    	if isParam && p.tok == token.ELLIPSIS {
    		pos := p.pos
    		p.next()
    		typ := p.tryIdentOrType(isParam) // don't use parseType so we can provide better error message
    		if typ == nil {
    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