- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 152 for IsStmt (0.21 sec)
-
src/cmd/internal/dwarf/putvarabbrevgen_test.go
func pvacfgbody(t *testing.T, fset *token.FileSet, cm ast.CommentMap, body []ast.Stmt) (start, end *pvacfgnode) { add := func(n *pvacfgnode) { 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:45:07 UTC 2024 - 8.9K bytes - Viewed (0) -
soft_delete.go
func (sd SoftDeleteDeleteClause) ModifyStatement(stmt *Statement) { if stmt.SQL.Len() == 0 && !stmt.Statement.Unscoped { curTime := stmt.DB.NowFunc() stmt.AddClause(clause.Set{{Column: clause.Column{Name: sd.Field.DBName}, Value: curTime}}) stmt.SetColumn(sd.Field.DBName, curTime, true) if stmt.Schema != nil { _, queryValues := schema.GetIdentityFieldValuesMap(stmt.Context, stmt.ReflectValue, stmt.Schema.PrimaryFields)
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Feb 01 06:40:55 UTC 2023 - 4.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/dead.go
} return true }) } switch stmt := node.(type) { case *ast.IfStmt: // "if" branch is dead if its condition evaluates // to constant false. v := info.Types[stmt.Cond].Value if v == nil { return } if !constant.BoolVal(v) { setDead(stmt.Body) return } if stmt.Else != nil { setDead(stmt.Else) } case *ast.SwitchStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 06 18:23:38 UTC 2018 - 2.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go
case *ast.BlockStmt: for _, stmt := range x.List { d.findLabels(stmt) } case *ast.BranchStmt: switch x.Tok { case token.GOTO: if x.Label != nil { d.hasGoto[x.Label.Name] = true } case token.BREAK: stmt := d.breakTarget if x.Label != nil { stmt = d.labels[x.Label.Name] } if stmt != nil { d.hasBreak[stmt] = true } }
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/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go
// stripping any (possibly nested) *ast.LabeledStmt wrapper. // // The second result reports whether stmt was an *ast.LabeledStmt. func unlabel(stmt ast.Stmt) (ast.Stmt, bool) { labeled := false for { labelStmt, ok := stmt.(*ast.LabeledStmt) if !ok { return stmt, labeled } labeled = true stmt = labelStmt.Stmt } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/read.go
new := &Line{Token: tokens} if i == len(x.Stmt) { x.Stmt = append(x.Stmt, new) } else { x.Stmt = append(x.Stmt, nil) copy(x.Stmt[i+2:], x.Stmt[i+1:]) x.Stmt[i+1] = new } return new } if hint != nil { for i, stmt := range x.Stmt { switch stmt := stmt.(type) { case *Line: if stmt == hint { if stmt.Token == nil || stmt.Token[0] != tokens[0] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 23.1K bytes - Viewed (0) -
clause/clause_test.go
stmt = gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}} ) for _, c := range clauses { if _, ok := buildNamesMap[c.Name()]; !ok { buildNames = append(buildNames, c.Name()) buildNamesMap[c.Name()] = true } stmt.AddClause(c) } stmt.Build(buildNames...)
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Jun 02 02:50:38 UTC 2020 - 1012 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/work.go
if _, ok := f.Syntax.Stmt[i].(*CommentBlock); !ok { break } } Found: f.Syntax.Stmt = append(append(f.Syntax.Stmt[:i:i], stmt), f.Syntax.Stmt[i:]...) } else { f.Toolchain.Name = name f.Syntax.updateLine(f.Toolchain.Syntax, "toolchain", name) } return nil } // DropGoStmt deletes the go statement from the file. func (f *WorkFile) DropGoStmt() { if f.Go != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go
lb._goto.Stmt = stmt } return lb } // newBlock appends a new unconnected basic block to b.cfg's block // slice and returns it. // It does not automatically become the current block. // comment is an optional string for more readable debugging output. func (b *builder) newBlock(kind BlockKind, stmt ast.Stmt) *Block { g := b.cfg block := &Block{ Index: int32(len(g.Blocks)), Kind: kind,
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/database/sql/fakedb_test.go
stmt.Close() return nil, errf("SELECT on table %q has pre-bound value for where column %q; need a question mark", stmt.table, column) } stmt.placeholders++ stmt.whereCol = append(stmt.whereCol, boundCol{Column: column, Placeholder: value, Ordinal: stmt.placeholders}) } return stmt, nil } // parts are table|col=type,col2=type2 func (c *fakeConn) prepareCreate(stmt *fakeStmt, parts []string) (*fakeStmt, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 01 12:38:07 UTC 2024 - 30.3K bytes - Viewed (0)