- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 243 for decls (0.05 sec)
-
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/go/types/resolver.go
case funcDecl: name := d.decl.Name.Name obj := NewFunc(d.decl.Name.Pos(), pkg, name, nil) // signature set later hasTParamError := false // avoid duplicate type parameter errors if d.decl.Recv.NumFields() == 0 { // regular function if d.decl.Recv != nil { check.error(d.decl.Recv, BadRecv, "method has no receiver") // treat as function
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K 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/printer/testdata/declarations.input
} // no tabs for single or ungrouped decls func _() { const xxxxxx = 0 type x int var xxx int var yyyy float = 3.14 var zzzzz = "bar" const ( xxxxxx = 0 ) type ( x int ) var ( xxx int ) var ( yyyy float = 3.14 ) var ( zzzzz = "bar" ) } // tabs for multiple or grouped decls func _() { // no entry has a type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 13 22:24:31 UTC 2021 - 16.5K 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/types/decl.go
func (d typeDecl) node() ast.Node { return d.spec } func (d funcDecl) node() ast.Node { return d.decl } func (check *Checker) walkDecls(decls []ast.Decl, f func(decl)) { for _, d := range decls { check.walkDecl(d, f) } } func (check *Checker) walkDecl(d ast.Decl, f func(decl)) { switch d := d.(type) { case *ast.BadDecl: // ignore case *ast.GenDecl:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31K bytes - Viewed (0) -
src/cmd/compile/internal/dwarfgen/dwinl.go
// addition, those vars that don't appear in the abstract // function, such as "~r1", are flagged as such). // // If a variable was produced by an inline, then we locate it in // the pre-inlining decls for the target function and assign child // index accordingly. for ii, sl := range vmap { var m map[varPos]int if ii == 0 { if !fnsym.WasInlined() { for j, v := range sl {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:45:07 UTC 2024 - 12.8K bytes - Viewed (0) -
src/go/parser/parser.go
// Likely not a Go source file at all. if p.errors.Len() != 0 { return nil } var decls []ast.Decl if p.mode&PackageClauseOnly == 0 { // import decls for p.tok == token.IMPORT { decls = append(decls, p.parseGenDecl(token.IMPORT, p.parseImportSpec)) } if p.mode&ImportsOnly == 0 { // rest of package body prev := token.IMPORT
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/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) -
tensorflow/compiler/mlir/tfr/BUILD
], ) gentbl_cc_library( name = "tfr_ops_inc_gen", compatible_with = get_compatible_with_portable(), tbl_outs = [ ( ["-gen-op-decls"], "ir/tfr_ops.h.inc", ), ( ["-gen-op-defs"], "ir/tfr_ops.cc.inc", ), ], tblgen = "@llvm-project//mlir:mlir-tblgen",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 27 18:00:18 UTC 2024 - 14K bytes - Viewed (0)