Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 58 for IsStmt (0.21 sec)

  1. src/go/types/labels.go

    				}
    			}
    		}
    		return false
    	}
    
    	blockBranches := func(lstmt *ast.LabeledStmt, list []ast.Stmt) {
    		// Unresolved forward jumps inside the nested block
    		// become forward jumps in the current block.
    		fwdJumps = append(fwdJumps, check.blockBranches(all, b, lstmt, list)...)
    	}
    
    	var stmtBranches func(ast.Stmt)
    	stmtBranches = func(s ast.Stmt) {
    		switch s := s.(type) {
    		case *ast.DeclStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/labels.go

    	b := &block{parent, lstmt, nil}
    
    	var (
    		varDeclPos         syntax.Pos
    		fwdJumps, badJumps []*syntax.BranchStmt
    	)
    
    	// All forward jumps jumping over a variable declaration are possibly
    	// invalid (they may still jump out of the block and be ok).
    	// recordVarDecl records them for the given position.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/nodes.go

    // Statements
    
    type (
    	Stmt interface {
    		Node
    		aStmt()
    	}
    
    	SimpleStmt interface {
    		Stmt
    		aSimpleStmt()
    	}
    
    	EmptyStmt struct {
    		simpleStmt
    	}
    
    	LabeledStmt struct {
    		Label *Name
    		Stmt  Stmt
    		stmt
    	}
    
    	BlockStmt struct {
    		List   []Stmt
    		Rbrace Pos
    		stmt
    	}
    
    	ExprStmt struct {
    		X Expr
    		simpleStmt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/noder/stmt.go

    Cuong Manh Le <******@****.***> 1687834257 +0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:39:32 UTC 2023
    - 564 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/stmt.go

    Keith Randall <******@****.***> 1693625527 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. callbacks/update.go

    	}
    
    	if !updatingValue.CanAddr() || stmt.Dest != stmt.Model {
    		switch stmt.ReflectValue.Kind() {
    		case reflect.Slice, reflect.Array:
    			if size := stmt.ReflectValue.Len(); size > 0 {
    				var isZero bool
    				for i := 0; i < size; i++ {
    					for _, field := range stmt.Schema.PrimaryFields {
    						_, isZero = field.ValueOf(stmt.Context, stmt.ReflectValue.Index(i))
    						if !isZero {
    							break
    						}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 05:44:55 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top