Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    		elts = p.parseElementList()
    	}
    	p.exprLev--
    	rbrace := p.expect(token.RBRACE)
    	return &ast.CompositeLit{typ, lbrace, elts, rbrace}
    }
    
    // checkExpr checks that x is an expression (and not a type).
    func (p *parser) checkExpr(x ast.Expr) ast.Expr {
    	switch t := ast.Unparen(x).(type) {
    	case *ast.BadExpr:
    	case *ast.Ident:
    	case *ast.BasicLit:
    	case *ast.FuncLit:
    	case *ast.CompositeLit:
    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