- Sort Score
- Result 10 results
- Languages All
Results 31 - 34 of 34 for KeyValueExpr (0.29 sec)
-
src/go/printer/testdata/parser.go
return p.parseLiteralValue(nil) } x := p.parseExpr(keyOk) // don't resolve if map key if keyOk { if p.tok == token.COLON { colon := p.pos p.next() return &ast.KeyValueExpr{x, colon, p.parseElement(false)} } p.resolve(x) // not a map key } return x } func (p *parser) parseElementList() (list []ast.Expr) { 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/cmd/compile/internal/syntax/parser.go
p.xnest++ p.want(_Lbrace) x.Rbrace = p.list("composite literal", _Comma, _Rbrace, func() bool { // value e := p.bare_complitexpr() if p.tok == _Colon { // key ':' value l := new(KeyValueExpr) l.pos = p.pos() p.next() l.Key = e l.Value = p.bare_complitexpr() e = l x.NKeys++ } x.ElemList = append(x.ElemList, e) return false }) p.xnest--
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/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"InterfaceType.Interface", Field, 0}, {"InterfaceType.Methods", Field, 0}, {"IsExported", Func, 0}, {"IsGenerated", Func, 21}, {"KeyValueExpr", Type, 0}, {"KeyValueExpr.Colon", Field, 0}, {"KeyValueExpr.Key", Field, 0}, {"KeyValueExpr.Value", Field, 0}, {"LabeledStmt", Type, 0}, {"LabeledStmt.Colon", Field, 0}, {"LabeledStmt.Label", Field, 0}, {"LabeledStmt.Stmt", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
src/go/parser/parser.go
func (p *parser) parseElement() ast.Expr { if p.trace { defer un(trace(p, "Element")) } x := p.parseValue() if p.tok == token.COLON { colon := p.pos p.next() x = &ast.KeyValueExpr{Key: x, Colon: colon, Value: p.parseValue()} } return x } func (p *parser) parseElementList() (list []ast.Expr) { if p.trace { defer un(trace(p, "ElementList")) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0)