- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for decls (0.06 sec)
-
tensorflow/compiler/mlir/lite/BUILD
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 49.9K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
p.error(p.pos, "invalid package name _") } p.expectSemi() var decls []ast.Decl // Don't bother parsing the rest if we had errors already. // Likely not a Go source file at all. if p.ErrorCount() == 0 && p.mode&PackageClauseOnly == 0 { // import decls for p.tok == token.IMPORT { decls = append(decls, p.parseGenDecl(token.IMPORT, parseImportSpec)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K 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/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) -
src/go/printer/nodes.go
p.print(blank) } p.expr(d.Name) p.signature(d.Type) p.funcBody(p.distanceFrom(d.Pos(), startCol), vtab, d.Body) } func (p *printer) decl(decl ast.Decl) { switch d := decl.(type) { case *ast.BadDecl: p.setPos(d.Pos()) p.print("BadDecl") case *ast.GenDecl: p.genDecl(d) case *ast.FuncDecl: p.funcDecl(d) default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/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.DeclList { fdecl, ok := decl.(*syntax.FuncDecl) if !ok { continue } def := info.Defs[fdecl.Name].(*Func) switch fdecl.Name.Value { case "m": dm = def
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
} } } pos := p.pos() p.want(close) return pos } // appendGroup(f) = f | "(" { f ";" } ")" . // ";" is optional before ")" func (p *parser) appendGroup(list []Decl, f func(*Group) Decl) []Decl { if p.tok == _Lparen { g := new(Group) p.clearPragma() p.next() // must consume "(" after calling clearPragma! p.list("grouped declaration", _Semi, _Rparen, func() bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/go/types/expr.go
// Anonymous functions are considered part of the // init expression/func declaration which contains // them: use existing package-level declaration info. decl := check.decl // capture for use in closure below iota := check.iota // capture for use in closure below (go.dev/issue/22345) // Don't type-check right away because the function may
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 94.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
// Anonymous functions are considered part of the // init expression/func declaration which contains // them: use existing package-level declaration info. decl := check.decl // capture for use in closure below iota := check.iota // capture for use in closure below (go.dev/issue/22345) // Don't type-check right away because the function may
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)