- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for LPAREN (0.11 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/unmarshal.go
switch t.Underlying().(type) { case *types.Pointer, *types.Interface, *types.TypeParam: return } switch argidx { case 0: pass.Reportf(call.Lparen, "call of %s passes non-pointer", fn.Name()) case 1: pass.Reportf(call.Lparen, "call of %s passes non-pointer as second argument", fn.Name()) } }) return nil, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/read.go
// ) type LineBlock struct { Comments Start Position LParen LParen Token []string Line []*Line RParen RParen } func (x *LineBlock) Span() (start, end Position) { return x.Start, x.RParen.Pos.add(")") } // An LParen represents the beginning of a parenthesized line block. // It is a place to store suffix comments. type LParen struct { Comments Pos Position }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 23.1K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
if p.trace { defer un(trace(p, "Parameters")) } var params []*ast.Field lparen := p.expect(token.LPAREN) if p.tok != token.RPAREN { params = p.parseParameterList(scope, ellipsisOk) } rparen := p.expect(token.RPAREN) return &ast.FieldList{lparen, params, rparen} } func (p *parser) parseResult(scope *ast.Scope) *ast.FieldList { if p.trace {
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/go/parser/parser.go
case token.MAP: return p.parseMapType() case token.CHAN, token.ARROW: return p.parseChanType() case token.LPAREN: lparen := p.pos p.next() typ := p.parseType() rparen := p.expect(token.RPAREN) return &ast.ParenExpr{Lparen: lparen, X: typ, Rparen: rparen} } // no type found return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go
children = append(children, tok(n.Func, len("func"))) } case *ast.GenDecl: children = append(children, tok(n.TokPos, len(n.Tok.String()))) if n.Lparen != 0 { children = append(children, tok(n.Lparen, len("(")), tok(n.Rparen, len(")"))) } case *ast.GoStmt: children = append(children, tok(n.Go, len("go"))) case *ast.Ident: children = append(children,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 15.9K bytes - Viewed (0) -
src/go/token/token.go
INC // ++ DEC // -- EQL // == LSS // < GTR // > ASSIGN // = NOT // ! NEQ // != LEQ // <= GEQ // >= DEFINE // := ELLIPSIS // ... LPAREN // ( LBRACK // [ LBRACE // { COMMA // , PERIOD // . RPAREN // ) RBRACK // ] RBRACE // } SEMICOLON // ; COLON // : operator_end keyword_beg // Keywords BREAK
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 6.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/print.go
default: panic(fmt.Errorf("printer: unexpected type %T", x)) case *CommentBlock: // done case *LParen: p.printf("(") case *RParen: p.printf(")") case *Line: p.tokens(x.Token) case *LineBlock: p.tokens(x.Token) p.printf(" ") p.expr(&x.LParen) p.margin++ for _, l := range x.Line { p.newline() p.expr(l) } p.margin-- p.newline()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 00:48:59 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go
if stringMethods[fn.Name()] { pass.Reportf(call.Lparen, "result of (%s).%s call not used", sig.Recv().Type(), fn.Name()) } } } else { // package-level function (e.g. fmt.Errorf) if pkgFuncs[[2]string{fn.Pkg().Path(), fn.Name()}] { pass.Reportf(call.Lparen, "result of %s.%s call not used", fn.Pkg().Path(), fn.Name()) } } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 4.5K bytes - Viewed (0) -
src/go/printer/nodes.go
case *ast.ChanType: paren = t.Dir == ast.RECV } if paren { p.print(token.LPAREN) } wasIndented := p.possibleSelectorExpr(x.Fun, token.HighestPrec, depth) if paren { p.print(token.RPAREN) } p.setPos(x.Lparen) p.print(token.LPAREN) if x.Ellipsis.IsValid() { p.exprList(x.Lparen, x.Args, depth, 0, x.Ellipsis, false) p.setPos(x.Ellipsis) p.print(token.ELLIPSIS)
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/types/generate_test.go
if isIdent(n.Args[0], "pos") { pos := n.Args[0].Pos() fun := &ast.SelectorExpr{X: newIdent(pos, "posn"), Sel: newIdent(pos, "Pos")} arg := &ast.CallExpr{Fun: fun, Lparen: pos, Args: nil, Ellipsis: token.NoPos, Rparen: pos} n.Args[0] = arg return false } case "addf": // rewrite err.addf(pos, ...) to err.addf(posn, ...) if isIdent(n.Args[0], "pos") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 16.5K bytes - Viewed (0)