Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for addPair (0.24 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. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ZipTestFixture.groovy

                    String content = getContentForEntry(entry, zipFile)
                    if (!entry.directory) {
                        add(entry.name, content)
                    } else {
                        addDir(entry.name)
                    }
                    addMode(entry.name, entry.getUnixMode())
                    addCompressionMethod(entry.name, entry.getMethod())
                }
            } finally {
                zipFile.close();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ArchiveTestFixture.groovy

        private final List<String> dirs = new ArrayList<>()
    
        protected void add(String relativePath, String content) {
            filesByRelativePath.put(relativePath, content)
        }
    
        protected void addDir(String relativePath) {
            dirs.add(relativePath)
        }
    
        protected void addMode(String relativePath, int mode) {
            fileModesByRelativePath.put(relativePath, mode & 0777)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/go/go_test.go

    	tg.sleep()
    	restore := addVar(sys, 0)
    	restore()
    	tg.wantNotStale("p1", "", "./testgo list claims p1 is stale, incorrectly, after updating mtime of runtime/internal/sys/sys.go")
    
    	// But changing content of any file should have an effect.
    	// Previously zversion.go was the only one that mattered;
    	// now they all matter, so keep using sys.go.
    	restore = addVar(sys, 1)
    	defer restore()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  6. 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