- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NewIdent (0.12 sec)
-
src/cmd/fix/printerconfig.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.1K bytes - Viewed (0) -
src/cmd/fix/netipv6zone.go
} switch i { case 0: cl.Elts[i] = &ast.KeyValueExpr{ Key: ast.NewIdent("IP"), Value: e, } case 1: if elit, ok := e.(*ast.BasicLit); ok && elit.Value == "0" { cl.Elts = append(cl.Elts[:i], cl.Elts[i+1:]...) } else { cl.Elts[i] = &ast.KeyValueExpr{ Key: ast.NewIdent("Port"), Value: e, } } } fixed = true } } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.3K bytes - Viewed (0) -
src/go/doc/exports.go
func filterIdentList(list []*ast.Ident) []*ast.Ident { j := 0 for _, x := range list { if token.IsExported(x.Name) { list[j] = x j++ } } return list[0:j] } var underscore = ast.NewIdent("_") func filterCompositeLit(lit *ast.CompositeLit, filter Filter, export bool) { n := len(lit.Elts) lit.Elts = filterExprList(lit.Elts, filter, export) if len(lit.Elts) < n { lit.Incomplete = true } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 01 18:18:07 UTC 2022 - 8.5K bytes - Viewed (0) -
cmd/preferredimports/preferredimports.go
a.failed = true } replacements[importName] = alias if imp.Name != nil { imp.Name.Name = alias } else { imp.Name = ast.NewIdent(alias) } } break } } if len(replacements) > 0 { if *confirm { fmt.Printf("%sReplacing imports with aliases in file %s\n", logPrefix, pathToFile)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:44 UTC 2024 - 7.1K bytes - Viewed (0) -
src/go/types/struct.go
pos := f.Type.Pos() // position of type, for errors name := embeddedFieldIdent(f.Type) if name == nil { check.errorf(f.Type, InvalidSyntaxTree, "embedded field type %s has no name", f.Type) name = ast.NewIdent("_") name.NamePos = pos addInvalid(name) continue } add(name, true) // struct{p.T} field has position of T // Because we have a name, typ must be of the form T or *T, where T is the name
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.1K bytes - Viewed (0)