- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 50 for Decl (0.17 sec)
-
src/cmd/compile/internal/staticinit/sched.go
return false } label := call.Body[1].(*ir.LabelStmt).Label block := call.Body[0].(*ir.BlockStmt) list := block.List var dcl *ir.Decl if len(list) == 3 && list[0].Op() == ir.ODCL { dcl = list[0].(*ir.Decl) list = list[1:] } if len(list) != 2 || list[0].Op() != ir.OAS2 || list[1].Op() != ir.OGOTO || list[1].(*ir.BranchStmt).Label != label { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
// (and use 0 indentation at function start) defer func(env environment, indent int) { check.environment = env check.indent = indent }(check.environment, check.indent) check.environment = environment{ decl: decl, scope: sig.scope, iota: iota, sig: sig, } check.indent = 0 check.stmtList(0, body.List) if check.hasLabel && !check.conf.IgnoreBranchErrors { check.labels(body) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K 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) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/serializer/DependencyVerificationsXmlReader.java
SAXParserFactory spf = XmlFactories.newSAXParserFactory(); spf.setFeature("http://xml.org/sax/features/namespaces", false); spf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); return spf.newSAXParser(); } private static class VerifiersHandler extends DefaultHandler2 { private final Interner<String> stringInterner = Interners.newStrongInterner();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 17 13:23:37 UTC 2023 - 19.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go
// Calls to panic, os.Exit, etc, never return. b.current = b.newBlock(KindUnreachable, s) } case *ast.DeclStmt: // Treat each var ValueSpec as a separate statement. d := s.Decl.(*ast.GenDecl) if d.Tok == token.VAR { for _, spec := range d.Specs { if spec, ok := spec.(*ast.ValueSpec); ok { b.add(spec) } } } case *ast.LabeledStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 11.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go
case *ast.Comment: return "comment" case *ast.CommentGroup: return "comment group" case *ast.CompositeLit: return "composite literal" case *ast.DeclStmt: return NodeDescription(n.Decl) + " statement" case *ast.DeferStmt: return "defer statement" case *ast.Ellipsis: return "ellipsis" case *ast.EmptyStmt: return "empty statement" case *ast.ExprStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 15.9K bytes - Viewed (0) -
src/cmd/compile/internal/walk/builtin.go
} // mem, overflow := math.mulUintptr(et.size, len) mem := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TUINTPTR]) overflow := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TBOOL]) decl := types.NewSignature(nil, []*types.Field{ types.NewField(base.Pos, nil, types.Types[types.TUINTPTR]), types.NewField(base.Pos, nil, types.Types[types.TUINTPTR]), }, []*types.Field{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0) -
src/go/printer/printer_test.go
// can be printed (per go/ast specification). Test case for issue 3870. func TestFuncType(t *testing.T) { src := &ast.File{ Name: &ast.Ident{Name: "p"}, Decls: []ast.Decl{ &ast.FuncDecl{ Name: &ast.Ident{Name: "f"}, Type: &ast.FuncType{}, }, }, } var buf bytes.Buffer if err := Fprint(&buf, fset, src); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
block.List = append(block.List, r.declStmt) } // declare the state variable here so it has proper scope and initialization if r.checkFuncMisuse() { stateVarDecl := &syntax.DeclStmt{DeclList: []syntax.Decl{loop.stateVarDecl}} setPos(stateVarDecl, start) block.List = append(block.List, stateVarDecl) } // iteratorFunc(bodyFunc) block.List = append(block.List, call) if r.checkFuncMisuse() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/text/template/parse/parse_test.go
{"variable with fields", "{{$.I}}", noError, "{{$.I}}"}, {"multi-word command", "{{printf `%d` 23}}", noError, "{{printf `%d` 23}}"}, {"pipeline", "{{.X|.Y}}", noError, `{{.X | .Y}}`}, {"pipeline with decl", "{{$x := .X|.Y}}", noError, `{{$x := .X | .Y}}`}, {"nested pipeline", "{{.X (.Y .Z) (.A | .B .C) (.E)}}", noError, `{{.X (.Y .Z) (.A | .B .C) (.E)}}`}, {"field applied to parentheses", "{{(.Y .Z).Field}}", noError,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 24K bytes - Viewed (0)