- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for indexExpr (0.13 sec)
-
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/types/expr.go
kind := check.rawExpr(nil, x, e.X, nil, false) x.expr = e return kind case *ast.SelectorExpr: check.selector(x, e, nil, false) case *ast.IndexExpr, *ast.IndexListExpr: ix := typeparams.UnpackIndexExpr(e) if check.indexExpr(x, ix) { if !enableReverseTypeInference { T = nil } check.funcInst(T, e.Pos(), x, ix, true) } if x.mode == invalid { goto Error
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/go/parser/parser.go
} p.next() } p.exprLev-- closing := p.expectClosing(token.RBRACK, "type argument list") if len(list) == 0 { p.errorExpected(closing, "type argument list") return &ast.IndexExpr{ X: typ, Lbrack: opening, Index: &ast.BadExpr{From: opening + 1, To: closing}, Rbrack: closing, } } return typeparams.PackIndexExpr(typ, opening, list, closing) }
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/compile/internal/types2/expr.go
kind := check.rawExpr(nil, x, e.X, nil, false) x.expr = e return kind case *syntax.SelectorExpr: check.selector(x, e, nil, false) case *syntax.IndexExpr: if check.indexExpr(x, e) { if !enableReverseTypeInference { T = nil } check.funcInst(T, e.Pos(), x, e, true) } if x.mode == invalid { goto Error }
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
high = p.parseRhs() } } p.exprLev-- rbrack := p.expect(token.RBRACK) if isSlice { return &ast.SliceExpr{x, lbrack, low, high, rbrack} } return &ast.IndexExpr{x, lbrack, low, rbrack} } func (p *parser) parseCallOrConversion(fun ast.Expr) *ast.CallExpr { if p.trace { defer un(trace(p, "CallOrConversion")) } lparen := p.expect(token.LPAREN)
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/printer/nodes.go
p.setPos(x.Rparen) p.print(token.RPAREN) case *ast.IndexExpr: // TODO(gri): should treat[] like parentheses and undo one level of depth p.expr1(x.X, token.HighestPrec, 1) p.setPos(x.Lbrack) p.print(token.LBRACK) p.expr0(x.Index, depth+1) p.setPos(x.Rbrack) p.print(token.RBRACK) case *ast.IndexListExpr: // TODO(gri): as for IndexExpr, should treat [] like parentheses and undo // one level of depth
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/cmd/cgo/gcc.go
if !p.isType(c.Fun) && !p.isUnsafeData(c.Fun, false) { break } x = c.Args[0] } u, ok := x.(*ast.UnaryExpr) if !ok || u.Op != token.AND { return false } index, ok := u.X.(*ast.IndexExpr) if !ok { return false } addr := "" deref := "" if p.isVariable(index.X) { addr = "&" deref = "*" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 97K bytes - Viewed (0)