- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for funcList (0.12 sec)
-
src/go/types/expr.go
switch t := x.typ.(type) { case *Alias, *Named: if isGeneric(t) { what = "type" } case *Signature: if t.tparams != nil { if enableReverseTypeInference && T != nil { check.funcInst(T, x.Pos(), x, nil, true) return } what = "function" } } if what != "" { check.errorf(x.expr, WrongTypeArgCount, "cannot use generic %s %s without instantiation", what, x.expr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
switch t := x.typ.(type) { case *Alias, *Named: if isGeneric(t) { what = "type" } case *Signature: if t.tparams != nil { if enableReverseTypeInference && T != nil { check.funcInst(T, x.Pos(), x, nil, true) return } what = "function" } } if what != "" { check.errorf(x.expr, WrongTypeArgCount, "cannot use generic %s %s without instantiation", what, x.expr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
} typ, scope := p.parseFuncType() if p.tok != token.LBRACE { // function type only return typ } p.exprLev++ body := p.parseBody(scope) p.exprLev-- return &ast.FuncLit{typ, body} } // parseOperand may return an expression or a raw type (incl. array // types of the form [...]T. Callers must verify the result. // If lhs is set and the result is an identifier, it is not resolved.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/go/printer/nodes.go
p.print(blank) } p.expr1(x.X, prec, depth) } case *ast.BasicLit: if p.Config.Mode&normalizeNumbers != 0 { x = normalizedNumber(x) } p.print(x) case *ast.FuncLit: p.setPos(x.Type.Pos()) p.print(token.FUNC) // See the comment in funcDecl about how the header size is computed. startCol := p.out.Column - len("func") p.signature(x.Type)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
src/go/parser/parser.go
} typ := p.parseFuncType() if p.tok != token.LBRACE { // function type only return typ } p.exprLev++ body := p.parseBody() p.exprLev-- return &ast.FuncLit{Type: typ, Body: body} } // parseOperand may return an expression or a raw type (incl. array // types of the form [...]T). Callers must verify the result. func (p *parser) parseOperand() ast.Expr {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0)