- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for NewIdent (0.17 sec)
-
src/cmd/cgo/out.go
err := &ast.Field{Type: ast.NewIdent("error")} l := gtype.Results.List if len(l) == 0 { l = []*ast.Field{err} } else { l = []*ast.Field{l[0], err} } t := new(ast.FuncType) *t = *gtype t.Results = &ast.FieldList{List: l} gtype = t } // Go func declaration. d := &ast.FuncDecl{ Name: ast.NewIdent(n.Mangle), Type: gtype, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:10 UTC 2024 - 59.6K bytes - Viewed (0) -
src/cmd/fix/fix.go
if s.Name != nil { if s.Name.Name == old { s.Name.Name = new fixed = true } } else { _, thisName := path.Split(importPath(s)) if thisName == old { s.Name = ast.NewIdent(new) fixed = true } } } // Rename any top-level declarations. for _, d := range f.Decls { switch d := d.(type) { case *ast.FuncDecl: if d.Recv == nil && d.Name.Name == old {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 14.6K bytes - Viewed (0) -
src/go/ast/filter.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 13.3K bytes - Viewed (0) -
src/go/ast/ast.go
func (*ChanType) exprNode() {} // ---------------------------------------------------------------------------- // Convenience functions for Idents // NewIdent creates a new [Ident] without position. // Useful for ASTs generated by code other than the Go parser. func NewIdent(name string) *Ident { return &Ident{token.NoPos, name, nil} } // IsExported reports whether name starts with an upper-case letter.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 35.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go
// Similarly so for return values: ret, ret1, ret2, ... name := "arg" if isret { name = "ret" } if argnum > 0 { name += strconv.Itoa(argnum) } names = []*ast.Ident{ast.NewIdent(name)} } argnum += len(names) // Create variable for each name. for _, id := range names { name := id.Name for _, c := range cc { outer := name + c.outer v := asmVar{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 22.8K bytes - Viewed (0) -
src/go/types/call.go
// or the result type in a return statement. Create a pseudo-expression for that operand // that makes sense when reported in error messages from infer, below. expr := ast.NewIdent(T.desc) expr.NamePos = x.Pos() // correct position args = []*operand{{mode: value, expr: expr, typ: T.sig}} reverse = true } // Rename type parameters to avoid problems with recursive instantiations.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 33.5K bytes - Viewed (0) -
src/go/parser/parser.go
for i := len(list) - 1; i >= 0; i-- { if par := &list[i]; par.typ != nil { typ = par.typ if par.name == nil { errPos = typ.Pos() n := ast.NewIdent("_") n.NamePos = errPos // correct position par.name = n } } else if typ != nil { par.typ = typ } else { // par.typ == nil && typ == nil => we only have a par.name
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/internal/stdlib/manifest.go
{"MapType.Key", Field, 0}, {"MapType.Map", Field, 0}, {"MapType.Value", Field, 0}, {"MergeMode", Type, 0}, {"MergePackageFiles", Func, 0}, {"NewCommentMap", Func, 1}, {"NewIdent", Func, 0}, {"NewObj", Func, 0}, {"NewPackage", Func, 0}, {"NewScope", Func, 0}, {"Node", Type, 0}, {"NotNilFilter", Func, 0}, {"ObjKind", Type, 0}, {"Object", Type, 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) -
api/go1.txt
pkg go/ast, func Inspect(Node, func(Node) bool) pkg go/ast, func IsExported(string) bool pkg go/ast, func MergePackageFiles(*Package, MergeMode) *File pkg go/ast, func NewIdent(string) *Ident pkg go/ast, func NewObj(ObjKind, string) *Object pkg go/ast, func NewPackage(*token.FileSet, map[string]*File, Importer, *Scope) (*Package, error) pkg go/ast, func NewScope(*Scope) *Scope
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)