- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 243 for decls (0.14 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/BUILD
], ) gentbl_cc_library( name = "passes_inc_gen", compatible_with = get_compatible_with_portable(), tbl_outs = [ ( [ "-gen-pass-decls", "-name=OdmlStablehlo", ], "transforms/passes.h.inc", ), ], tblgen = "@llvm-project//mlir:mlir-tblgen", td_file = "transforms/passes.td",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 24.9K bytes - Viewed (0) -
src/go/build/read.go
if info.parseErr != nil { return nil } hasEmbed := false for _, decl := range info.parsed.Decls { d, ok := decl.(*ast.GenDecl) if !ok { continue } for _, dspec := range d.Specs { spec, ok := dspec.(*ast.ImportSpec) if !ok { continue } quoted := spec.Path.Value
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K 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) -
src/go/parser/resolver.go
pkgScope := ast.NewScope(nil) r := &resolver{ handle: handle, declErr: declErr, topScope: pkgScope, pkgScope: pkgScope, depth: 1, } for _, decl := range file.Decls { ast.Walk(r, decl) } r.closeScope() assert(r.topScope == nil, "unbalanced scopes") assert(r.labelScope == nil, "unbalanced label scopes") // resolve global identifiers within the same file i := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 15.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/abi.go
pprag := &typecheck.Target.CgoPragmas[i] cgoExports[symName] = append(cgoExports[symName], pprag) } } // Apply ABI defs and refs to Funcs and generate wrappers. // // This may generate new decls for the wrappers, but we // specifically *don't* want to visit those, lest we create // wrappers for wrappers. for _, fn := range typecheck.Target.Funcs { nam := fn.Nname if ir.IsBlank(nam) { continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 13.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go
knownFunc := make(map[string]map[string]*asmFunc) for _, f := range pass.Files { for _, decl := range f.Decls { if decl, ok := decl.(*ast.FuncDecl); ok && decl.Body == nil { knownFunc[decl.Name.Name] = asmParseDecl(pass, decl) } } } Files: for _, fname := range sfiles { content, tf, err := analysisutil.ReadFile(pass, fname) if err != nil {
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/cmd/compile/internal/ssa/_gen/rulegen.go
for _, x := range list { u.node(x) } } func (u *unusedInspector) node(node ast.Node) { switch node := node.(type) { case *ast.File: defer u.scoped()() for _, decl := range node.Decls { u.node(decl) } case *ast.GenDecl: for _, spec := range node.Specs { u.node(spec) } case *ast.ImportSpec: impPath, _ := strconv.Unquote(node.Path.Value) name := path.Base(impPath)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 02 22:09:21 UTC 2023 - 48.7K bytes - Viewed (0) -
src/go/types/generate_test.go
return true }) } // insertImportPath inserts the given import path. // There must be at least one import declaration present already. func insertImportPath(f *ast.File, path string) { for _, d := range f.Decls { if g, _ := d.(*ast.GenDecl); g != nil && g.Tok == token.IMPORT { g.Specs = append(g.Specs, &ast.ImportSpec{Path: &ast.BasicLit{ValuePos: g.End(), Kind: token.STRING, Value: path}}) return } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 16.5K bytes - Viewed (0) -
src/text/template/parse/parse_test.go
{"template with var", "{{template $v}}", hasError, ""}, {"invalid punctuation", "{{printf 3, 4}}", hasError, ""}, {"multidecl outside range", "{{with $v, $u := 3}}{{end}}", hasError, ""}, {"too many decls in range", "{{range $u, $v, $w := 3}}{{end}}", hasError, ""}, {"dot applied to parentheses", "{{printf (printf .).}}", hasError, ""}, {"adjacent args", "{{printf 3`x`}}", hasError, ""},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 24K bytes - Viewed (0) -
src/go/types/api_test.go
if gm.Name() == "n" { gm, gn = gn, gm } // Collect objects from info. var dm, dn *Func // the declared methods var dmm, dmn *Func // the methods used in the body of m for _, decl := range f.Decls { fdecl, ok := decl.(*ast.FuncDecl) if !ok { continue } def := info.Defs[fdecl.Name].(*Func) switch fdecl.Name.Name { case "m": dm = def ast.Inspect(fdecl.Body, func(n ast.Node) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0)