Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkExprOrType (0.42 sec)

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

    func deref(x ast.Expr) ast.Expr {
    	if p, isPtr := x.(*ast.StarExpr); isPtr {
    		x = p.X
    	}
    	return x
    }
    
    // checkExprOrType checks that x is an expression or a type
    // (and not a raw type such as [...]T).
    func (p *parser) checkExprOrType(x ast.Expr) ast.Expr {
    	switch t := ast.Unparen(x).(type) {
    	case *ast.ParenExpr:
    		panic("unreachable")
    	case *ast.UnaryExpr:
    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