Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parsePrimaryExpr (0.2 sec)

  1. src/go/parser/parser.go

    			if p.tok != token.LBRACK {
    				// To parse the expression starting with name, expand
    				// the call sequence we would get by passing in name
    				// to parser.expr, and pass in name to parsePrimaryExpr.
    				p.exprLev++
    				lhs := p.parsePrimaryExpr(x)
    				x = p.parseBinaryExpr(lhs, token.LowestPrec+1)
    				p.exprLev--
    			}
    			// Analyze expression x. If we can split x into a type parameter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    		}
    	}
    
    	// all other nodes are expressions or types
    	return x
    }
    
    // If lhs is set and the result is an identifier, it is not resolved.
    func (p *parser) parsePrimaryExpr(lhs bool) ast.Expr {
    	if p.trace {
    		defer un(trace(p, "PrimaryExpr"))
    	}
    
    	x := p.parseOperand(lhs)
    L:
    	for {
    		switch p.tok {
    		case token.PERIOD:
    			p.next()
    			if lhs {
    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