- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 135 for cdecl (0.04 sec)
-
src/cmd/cgo/internal/testerrors/argposition_test.go
}, }, "doublePointerChecked": []ShortPosition{ ShortPosition{ Line: 42, Column: 91, }, }, } for _, decl := range f.Decls { if fdecl, ok := decl.(*ast.FuncDecl); ok { ast.Walk(&Visitor{expectation, fset, t}, fdecl.Body) } } for ident, positions := range expectation { for _, position := range positions { if !position.Visited {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:31 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes.go
Name *Name TParamList []*Field // nil means no type parameters Type *FuncType Body *BlockStmt // nil means no body (forward declaration) decl } ) type decl struct{ node } func (*decl) aDecl() {} // All declarations belonging to the same group point to the same Group node. type Group struct { _ int // not empty so we are guaranteed different Group instances }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 9K bytes - Viewed (0) -
test/decl.go
Alan Donovan <******@****.***> 1360693069 -0500
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 12 18:17:49 UTC 2013 - 926 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
// Otherwise it may be a Print wrapper. func maybePrintfWrapper(info *types.Info, decl ast.Decl) *printfWrapper { // Look for functions with final argument type ...interface{}. fdecl, ok := decl.(*ast.FuncDecl) if !ok || fdecl.Body == nil { return nil } fn, ok := info.Defs[fdecl.Name].(*types.Func) // Type information may be incomplete. if !ok { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0) -
src/go/printer/performance_test.go
} fileNode = file fileSize = int64(len(src)) for _, decl := range file.Decls { // The first global variable, which is pretty short: // // var unresolved = new(ast.Object) if decl, ok := decl.(*ast.GenDecl); ok && decl.Tok == token.VAR { declNode = decl declSize = int64(fset.Position(decl.End()).Offset - fset.Position(decl.Pos()).Offset) break } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:10:10 UTC 2022 - 1.8K bytes - Viewed (0) -
src/go/doc/testdata/template.txt
CONSTANTS {{range .}} {{synopsis .Doc}} {{node .Decl $.FSet}} {{end}}{{end}}{{/* */}}{{with .Vars}} VARIABLES {{range .}} {{synopsis .Doc}} {{node .Decl $.FSet}} {{end}}{{end}}{{/* */}}{{with .Funcs}} FUNCTIONS {{range .}} {{synopsis .Doc}} {{node .Decl $.FSet}} {{end}}{{end}}{{/* */}}{{with .Types}} TYPES {{range .}} {{synopsis .Doc}} {{node .Decl $.FSet}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 1.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/mkbuiltin.go
for _, decl := range f.Decls { switch decl := decl.(type) { case *ast.FuncDecl: if decl.Recv != nil { log.Fatal("methods unsupported") } if decl.Body != nil { log.Fatal("unexpected function body") } fmt.Fprintf(w, "{%q, funcTag, %d},\n", decl.Name.Name, interner.intern(decl.Type)) case *ast.GenDecl: if decl.Tok == token.IMPORT {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/internal/goobj/mkbuiltin.go
fmt.Fprintf(w, "var builtins = [...]struct{ name string; abi int }{\n") for _, decl := range f.Decls { switch decl := decl.(type) { case *ast.FuncDecl: if decl.Recv != nil { log.Fatal("methods unsupported") } if decl.Body != nil { log.Fatal("unexpected function body") } declName := pkg + "." + decl.Name.Name decls[declName] = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 3.8K bytes - Viewed (0) -
test/map.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 06 21:02:55 UTC 2014 - 14.9K bytes - Viewed (0) -
src/cmd/doc/pkg.go
// Now print the consts, vars, and constructors. for _, c := range typ.Consts { if decl := pkg.oneLineNode(c.Decl); decl != "" { pkg.Printf(indent+"%s\n", decl) } } for _, v := range typ.Vars { if decl := pkg.oneLineNode(v.Decl); decl != "" { pkg.Printf(indent+"%s\n", decl) } } for _, constructor := range typ.Funcs { if isExported(constructor.Name) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0)