go/ast.CompositeLit.Elts (field)
25 uses
go/ast (current package)
ast.go#L315: Elts []Expr // list of composite elements; or nil
filter.go#L113: n := len(lit.Elts)
filter.go#L114: lit.Elts = filterExprList(lit.Elts, filter, export)
filter.go#L115: if len(lit.Elts) < n {
walk.go#L104: walkExprList(v, n.Elts)
go/doc
exports.go#L31: n := len(lit.Elts)
exports.go#L32: lit.Elts = filterExprList(lit.Elts, filter, export)
exports.go#L33: if len(lit.Elts) < n {
go/parser
parser.go#L1373: return &ast.CompositeLit{Type: typ, Lbrace: lbrace, Elts: elts, Rbrace: rbrace}
go/printer
nodes.go#L913: p.exprList(x.Lbrace, x.Elts, 1, commaTerm, x.Rbrace, x.Incomplete)
nodes.go#L920: if len(x.Elts) > 0 {
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L950: if x.Elts != nil {
encode_ast.gen.go#L952: encode_slice_ast_Expr(e, x.Elts)
encode_ast.gen.go#L987: decode_slice_ast_Expr(d, &x.Elts)
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L556: if len(n.Elts) > v.maxElements {
linkify.go#L557: addComment(pcg, n.Lbrace, fmt.Sprintf("/* %d elements not displayed */", len(n.Elts)))
linkify.go#L558: n.Elts = n.Elts[:0]
synopsis.go#L128: if len(n.Elts) == 0 {
golang.org/x/pkgsite/internal/godoc/internal/doc
exports.go#L31: n := len(lit.Elts)
exports.go#L32: lit.Elts = filterExprList(lit.Elts, filter, export)
exports.go#L33: if len(lit.Elts) < n {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |