Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for addPair (0.36 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    		case *ast.RangeStmt:
    			body = n.Body
    			addVar(n.Key)
    			addVar(n.Value)
    		case *ast.ForStmt:
    			body = n.Body
    			switch post := n.Post.(type) {
    			case *ast.AssignStmt:
    				// e.g. for p = head; p != nil; p = p.next
    				for _, lhs := range post.Lhs {
    					addVar(lhs)
    				}
    			case *ast.IncDecStmt:
    				// e.g. for i := 0; i < n; i++
    				addVar(post.X)
    			}
    		}
    		if vars == nil {
    			return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. statement.go

    }
    
    // Quote returns quoted value
    func (stmt *Statement) Quote(field interface{}) string {
    	var builder strings.Builder
    	stmt.QuoteTo(&builder, field)
    	return builder.String()
    }
    
    // AddVar add var
    func (stmt *Statement) AddVar(writer clause.Writer, vars ...interface{}) {
    	for idx, v := range vars {
    		if idx > 0 {
    			writer.WriteByte(',')
    		}
    
    		switch v := v.(type) {
    		case sql.NamedArg:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/debug_test.go

    				if colonPos == -1 {
    					panic(fmt.Sprintf("Line %d (%s) in file %s expected to contain '<number>:' but does not.\n", i+1, l, filename))
    				}
    				h.add(lastfile, l[0:colonPos], l[colonPos+1:])
    			} else {
    				h.addVar(l)
    			}
    		}
    	}
    }
    
    // add appends file (name), line (number) and text (string) to the history,
    // provided that the file+line combo does not repeat the previous position,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  4. migrator/migrator.go

    	sql.WriteString("CREATE ")
    	if option.Replace {
    		sql.WriteString("OR REPLACE ")
    	}
    	sql.WriteString("VIEW ")
    	m.QuoteTo(sql, name)
    	sql.WriteString(" AS ")
    
    	m.DB.Statement.AddVar(sql, option.Query)
    
    	if option.CheckOption != "" {
    		sql.WriteString(" ")
    		sql.WriteString(option.CheckOption)
    	}
    	return m.DB.Exec(m.Explain(sql.String(), m.DB.Statement.Vars...)).Error
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top