- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for exprFmt (0.13 sec)
-
src/go/ast/commentmap_test.go
"20: *ast.Field": "complex value\n", "25: *ast.GenDecl": "x\nx = 0\nalso associated with x\n", "29: *ast.FuncDecl": "f1\nassociated with f1\nalso associated with f1\n", "31: *ast.ExprStmt": " associated with s1\nalso associated with s1\n", "37: *ast.ExprStmt": "associated with s2\nalso associated with s2\nline comment for s2\n", "45: *ast.FuncDecl": "associated with f2\nf2\n", "49: *ast.AssignStmt": "addition\n",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:35:30 UTC 2022 - 3.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes_test.go
{"EmptyStmt", `@`}, {"LabeledStmt", `L@:`}, {"LabeledStmt", `L@: ;`}, {"LabeledStmt", `L@: f()`}, {"BlockStmt", `@{}`}, // The position of an ExprStmt is the position of the expression. {"ExprStmt", `@<-ch`}, {"ExprStmt", `f@()`}, {"ExprStmt", `append@(s, 1, 2, 3)`}, {"SendStmt", `ch @<- x`}, {"DeclStmt", `@const x = 0`}, {"DeclStmt", `@const (x = 0)`}, {"DeclStmt", `@type T int`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 18:45:06 UTC 2023 - 8.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/return.go
case *syntax.DeclStmt, *syntax.EmptyStmt, *syntax.SendStmt, *syntax.AssignStmt, *syntax.CallStmt: // no chance case *syntax.LabeledStmt: return check.isTerminating(s.Stmt, s.Label.Value) case *syntax.ExprStmt: // calling the predeclared (possibly parenthesized) panic() function is terminating if call, ok := syntax.Unparen(s.X).(*syntax.CallExpr); ok && check.isPanic[call] { return true } case *syntax.ReturnStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go
if i := strings.LastIndexByte(s, '.'); i > 0 { pkgFuncs[[2]string{s[:i], s[i+1:]}] = true } } nodeFilter := []ast.Node{ (*ast.ExprStmt)(nil), } inspect.Preorder(nodeFilter, func(n ast.Node) { call, ok := astutil.Unparen(n.(*ast.ExprStmt).X).(*ast.CallExpr) if !ok { return // not a call statement } // Call to function or method?
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 4.5K bytes - Viewed (0) -
src/go/types/return.go
*ast.IncDecStmt, *ast.AssignStmt, *ast.GoStmt, *ast.DeferStmt, *ast.RangeStmt: // no chance case *ast.LabeledStmt: return check.isTerminating(s.Stmt, s.Label.Name) case *ast.ExprStmt: // calling the predeclared (possibly parenthesized) panic() function is terminating if call, ok := ast.Unparen(s.X).(*ast.CallExpr); ok && check.isPanic[call] { return true } case *ast.ReturnStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
// case *Field: // case *InterfaceType: // case *FuncType: // case *MapType: // case *ChanType: // statements // case *EmptyStmt: // case *LabeledStmt: // case *BlockStmt: // case *ExprStmt: case *SendStmt: m = n.Chan // case *DeclStmt: case *AssignStmt: m = n.Lhs // case *BranchStmt: // case *CallStmt: // case *ReturnStmt: // case *IfStmt: // case *ForStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go
return } assert = n targets = append(targets, n.Type) case *ast.TypeSwitchStmt: // retrieve type assertion from type switch's 'assign' field switch t := n.Assign.(type) { case *ast.ExprStmt: assert = t.X.(*ast.TypeAssertExpr) case *ast.AssignStmt: assert = t.Rhs[0].(*ast.TypeAssertExpr) } // gather target types from case clauses for _, c := range n.Body.List {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go
log.Fatalf("%s: internal error in findLabels: unexpected statement %T", d.pass.Fset.Position(x.Pos()), x) case *ast.AssignStmt, *ast.BadStmt, *ast.DeclStmt, *ast.DeferStmt, *ast.EmptyStmt, *ast.ExprStmt, *ast.GoStmt, *ast.IncDecStmt, *ast.ReturnStmt, *ast.SendStmt: // no statements inside case *ast.BlockStmt: for _, stmt := range x.List { d.findLabels(stmt) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 7.6K bytes - Viewed (0) -
src/cmd/internal/dwarf/putvarabbrevgen_test.go
if start == nil || end == nil { start = n end = n } else { end.then = n end = n } } for _, stmt := range body { switch stmt := stmt.(type) { case *ast.ExprStmt: if x, _ := stmt.X.(*ast.CallExpr); x != nil { funstr := exprToString(x.Fun) if funstr == "putattr" { form, _ := x.Args[3].(*ast.Ident) if form == nil {
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/cmd/vendor/golang.org/x/tools/go/cfg/cfg.go
// It also determines the possible types of its Stmt field. type BlockKind uint8 const ( KindInvalid BlockKind = iota // Stmt=nil KindUnreachable // unreachable block after {Branch,Return}Stmt / no-return call ExprStmt KindBody // function body BlockStmt KindForBody // body of ForStmt KindForDone // block after ForStmt KindForLoop // head of ForStmt KindForPost // post condition of ForStmt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.7K bytes - Viewed (0)