Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for IsStmt (0.12 sec)

  1. callbacks.go

    			}
    		}
    	}
    
    	// assign stmt.ReflectValue
    	if stmt.Dest != nil {
    		stmt.ReflectValue = reflect.ValueOf(stmt.Dest)
    		for stmt.ReflectValue.Kind() == reflect.Ptr {
    			if stmt.ReflectValue.IsNil() && stmt.ReflectValue.CanAddr() {
    				stmt.ReflectValue.Set(reflect.New(stmt.ReflectValue.Type().Elem()))
    			}
    
    			stmt.ReflectValue = stmt.ReflectValue.Elem()
    		}
    		if !stmt.ReflectValue.IsValid() {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. prepare_stmt.go

    	db.Mux.RLock()
    	if stmt, ok := db.Stmts[query]; ok && (!stmt.Transaction || isTransaction) {
    		db.Mux.RUnlock()
    		// wait for other goroutines prepared
    		<-stmt.prepared
    		if stmt.prepareErr != nil {
    			return Stmt{}, stmt.prepareErr
    		}
    
    		return *stmt, nil
    	}
    	db.Mux.RUnlock()
    
    	db.Mux.Lock()
    	// double check
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 28 08:47:39 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go

    		(*ast.AssignStmt)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		stmt := n.(*ast.AssignStmt)
    		if stmt.Tok != token.ASSIGN {
    			return // ignore :=
    		}
    		if len(stmt.Lhs) != len(stmt.Rhs) {
    			// If LHS and RHS have different cardinality, they can't be the same.
    			return
    		}
    		for i, lhs := range stmt.Lhs {
    			rhs := stmt.Rhs[i]
    			if analysisutil.HasSideEffects(pass.TypesInfo, lhs) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. clause/expression_test.go

    			stmt := &gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}}
    			clause.NamedExpr{SQL: result.SQL, Vars: result.Vars}.Build(stmt)
    			if stmt.SQL.String() != result.Result {
    				t.Errorf("generated SQL is not equal, expects %v, but got %v", result.Result, stmt.SQL.String())
    			}
    
    			if !reflect.DeepEqual(result.ExpectedVars, stmt.Vars) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Aug 10 05:34:33 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    			return true
    		}
    		var id *ast.Ident // id of cancel var
    		stmt := stack[len(stack)-3]
    		switch stmt := stmt.(type) {
    		case *ast.ValueSpec:
    			if len(stmt.Names) > 1 {
    				id = stmt.Names[1]
    			}
    		case *ast.AssignStmt:
    			if len(stmt.Lhs) > 1 {
    				id, _ = stmt.Lhs[1].(*ast.Ident)
    			}
    		}
    		if id != nil {
    			if id.Name == "_" {
    				pass.ReportRangef(id,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. interfaces.go

    // TxCommitter tx committer
    type TxCommitter interface {
    	Commit() error
    	Rollback() error
    }
    
    // Tx sql.Tx interface
    type Tx interface {
    	ConnPool
    	TxCommitter
    	StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt
    }
    
    // Valuer gorm valuer interface
    type Valuer interface {
    	GormValue(context.Context, *DB) clause.Expr
    }
    
    // GetDBConnector SQL db connector
    type GetDBConnector interface {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:33:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. src/go/types/return.go

    // is "".
    func (check *Checker) isTerminating(s ast.Stmt, label string) bool {
    	switch s := s.(type) {
    	default:
    		panic("unreachable")
    
    	case *ast.BadStmt, *ast.DeclStmt, *ast.EmptyStmt, *ast.SendStmt,
    		*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:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/cfg/cfg.go

    	Kind  BlockKind  // block kind
    	Stmt  ast.Stmt   // statement that gave rise to this block (see BlockKind for details)
    
    	succs2 [2]*Block // underlying array for Succs
    }
    
    // A BlockKind identifies the purpose of a block.
    // It also determines the possible types of its Stmt field.
    type BlockKind uint8
    
    const (
    	KindInvalid BlockKind = iota // Stmt=nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top