- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 108 for decls (0.06 sec)
-
src/cmd/compile/internal/typecheck/iexport.go
// } // // Strings [StringSize]byte // Data [DataSize]byte // // MainIndex []struct{ // PkgPath stringOff // PkgName stringOff // PkgHeight uvarint // // Decls []struct{ // Name stringOff // Offset declOff // } // } // // Fingerprint [8]byte // // uvarint means a uint64 written out using uvarint encoding. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 02:40:02 UTC 2023 - 6.8K bytes - Viewed (0) -
src/cmd/compile/internal/test/ssa_test.go
if err != nil { t.Fatalf("can't parse testdata/%s: %v", f.Name(), err) } srcs = append(srcs, filepath.Join("testdata", f.Name())) foundTest := false for _, d := range code.Decls { fd, ok := d.(*ast.FuncDecl) if !ok { continue } if !strings.HasPrefix(fd.Name.Name, "Test") { continue } if fd.Recv != nil { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/internal/dwarf/putvarabbrevgen_test.go
abbrevs := make(map[string]int) funcs := map[string]ast.Stmt{} for _, decl := range f.Decls { decl, ok := decl.(*ast.FuncDecl) if !ok || decl.Body == nil { continue } if decl.Name.Name == "putvar" || decl.Name.Name == "putAbstractVar" { // construct the simplified CFG pvagraph, _ := pvacfgbody(t, &fset, cm, decl.Body.List) funcs[decl.Name.Name+"Abbrev"] = pvacfgvisit(pvagraph, abbrevs) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:45:07 UTC 2024 - 8.9K bytes - Viewed (0) -
src/go/ast/walk.go
Walk(v, n.Type) if n.Body != nil { Walk(v, n.Body) } // Files and packages case *File: if n.Doc != nil { Walk(v, n.Doc) } Walk(v, n.Name) walkList(v, n.Decls) // don't walk n.Comments - they have been // visited already through the individual // nodes case *Package: for _, f := range n.Files { Walk(v, f) } default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:34:10 UTC 2024 - 6.4K bytes - Viewed (0) -
src/go/ast/import.go
// SortImports sorts runs of consecutive import lines in import blocks in f. // It also removes duplicate imports when it is possible to do so without data loss. func SortImports(fset *token.FileSet, f *File) { for _, d := range f.Decls { d, ok := d.(*GenDecl) if !ok || d.Tok != token.IMPORT { // Not an import declaration, so we're done. // Imports are always first. break } if !d.Lparen.IsValid() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.7K bytes - Viewed (0) -
src/go/types/eval_test.go
fset := token.NewFileSet() f := mustParse(fset, src) var conf types.Config pkg, err := conf.Check(pkgName(src), fset, []*ast.File{f}, nil) if err != nil { t.Fatal(err) } for _, d := range f.Decls { if fun, _ := d.(*ast.FuncDecl); fun != nil { // type parameter A is not found at the start of the function type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 19:56:15 UTC 2024 - 8.3K bytes - Viewed (0) -
src/internal/types/testdata/check/decls1.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // variable declarations package decls1 import ( "math" ) // Global variables without initialization var ( a, b bool c byte d uint8 r rune i int j, k, l int x, y float32 xx, yy float64 u, v complex64 uu, vv complex128 s, t string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 05 18:13:11 UTC 2024 - 3.8K bytes - Viewed (0) -
src/internal/types/testdata/check/decls4.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // type aliases package decls4 type ( T0 [10]int T1 []byte T2 struct { x int } T3 interface{ m() T2 } T4 func(int, T0) chan T2 ) type ( Ai = int A0 = T0 A1 = T1 A2 = T2 A3 = T3 A4 = T4 A10 = [10]int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 3.2K bytes - Viewed (0) -
src/internal/types/testdata/check/decls3.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // embedded types package decls3 import "unsafe" import "fmt" // fields with the same name at the same level cancel each other out func _() { type ( T1 struct { X int } T2 struct { X int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 23:16:04 UTC 2023 - 4.2K bytes - Viewed (0) -
src/internal/types/testdata/check/decls0.go
Robert Griesemer <******@****.***> 1717017554 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 4.1K bytes - Viewed (0)