- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 135 for cdecl (0.05 sec)
-
src/go/format/format.go
// Node formats node in canonical gofmt style and writes the result to dst. // // The node type must be *[ast.File], *[printer.CommentedNode], [][ast.Decl], // [][ast.Stmt], or assignment-compatible to [ast.Expr], [ast.Decl], [ast.Spec], // or [ast.Stmt]. Node does not modify node. Imports are not sorted for // nodes representing partial source files (for instance, if the node is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 4.3K bytes - Viewed (0) -
src/go/ast/resolve.go
} } else if name != "_" { // declare imported package object in file scope // (do not re-use pkg in the file scope but create // a new object instead; the Decl field is different // for different files) obj := NewObj(Pkg, name) obj.Decl = spec obj.Data = pkg.Data p.declare(fileScope, pkgScope, obj) } } // resolve identifiers if importErrors {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 5.4K bytes - Viewed (0) -
src/cmd/compile/internal/noder/noder.go
renameinitgen++ return s } func checkEmbed(decl *syntax.VarDecl, haveEmbed, withinFunc bool) error { switch { case !haveEmbed: return errors.New("go:embed only allowed in Go files that import \"embed\"") case len(decl.NameList) > 1: return errors.New("go:embed cannot apply to multiple vars") case decl.Values != nil: return errors.New("go:embed cannot apply to var with initializer")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:40:57 UTC 2023 - 12.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/testinggoroutine.go
return &asyncCall{region: lit, async: goStmt, scope: nil, fun: fun} } } if fn := typeutil.StaticCallee(info, call); fn != nil { // static call or method in the package? if decl := toDecl(fn); decl != nil { return &asyncCall{region: decl, async: goStmt, scope: nil, fun: fun} } } // Check go statement for go t.Forbidden() or go func(){t.Forbidden()}().
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate_test.go
} } func TestMethodInstantiation(t *testing.T) { const prefix = `package p type T[P any] struct{} var X T[int] ` tests := []struct { decl string want string }{ {"func (r T[P]) m() P", "func (T[int]).m() int"}, {"func (r T[P]) m(P)", "func (T[int]).m(int)"}, {"func (r *T[P]) m(P)", "func (*T[int]).m(int)"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 5.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
case *CommClause: if l := lastStmt(n.Body); l != nil { m = l continue } return n.Colon default: return n.Pos() } } } func lastDecl(list []Decl) Decl { if l := len(list); l > 0 { return list[l-1] } return nil } func lastExpr(list []Expr) Expr { if l := len(list); l > 0 { return list[l-1] } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/cmd/fix/typecheck.go
if err != nil { return err } cgo, err := parser.ParseFile(token.NewFileSet(), "cgo.go", out, 0) if err != nil { return err } for _, decl := range cgo.Decls { fn, ok := decl.(*ast.FuncDecl) if !ok { continue } if strings.HasPrefix(fn.Name.Name, "_Cfunc_") { var params, results []string for _, p := range fn.Type.Params.List {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 20.1K bytes - Viewed (0) -
src/text/template/parse/parse.go
pipe.IsAssign = next.typ == itemAssign t.nextNonSpace() pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val)) t.vars = append(t.vars, v.val) case next.typ == itemChar && next.val == ",": t.nextNonSpace() pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val)) t.vars = append(t.vars, v.val) if context == "range" && len(pipe.Decl) < 2 { switch t.peekNonSpace().typ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 21.3K bytes - Viewed (0) -
src/text/template/parse/node.go
IsAssign bool // The variables are being assigned, not declared. Decl []*VariableNode // Variables in lexical order. Cmds []*CommandNode // The commands in lexical order. } func (t *Tree) newPipeline(pos Pos, line int, vars []*VariableNode) *PipeNode { return &PipeNode{tr: t, NodeType: NodePipe, Pos: pos, Line: line, Decl: vars} } func (p *PipeNode) append(command *CommandNode) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 24.2K bytes - Viewed (0) -
src/cmd/cover/cover_test.go
fset := token.NewFileSet() astFile, err := parser.ParseFile(fset, testDirectives, output, 0) if err != nil { t.Fatal(err) } prevEnd := 0 for _, decl := range astFile.Decls { var name string switch d := decl.(type) { case *ast.FuncDecl: name = d.Name.Name case *ast.GenDecl: if len(d.Specs) == 0 { // An empty group declaration. We still want to check that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:28 UTC 2023 - 18.4K bytes - Viewed (0)