Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for lineAt (0.32 sec)

  1. src/go/ast/import.go

    		d.Specs = specs
    
    		// Deduping can leave a blank line before the rparen; clean that up.
    		if len(d.Specs) > 0 {
    			lastSpec := d.Specs[len(d.Specs)-1]
    			lastLine := lineAt(fset, lastSpec.Pos())
    			rParenLine := lineAt(fset, d.Rparen)
    			for rParenLine > lastLine+1 {
    				rParenLine--
    				fset.File(d.Rparen).MergeLine(rParenLine)
    			}
    		}
    	}
    }
    
    func lineAt(fset *token.FileSet, pos token.Pos) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/go/printer/gobuild.go

    		block = append(block, tabwriter.Escape, '\n')
    		if len(p.plusBuild) > 0 {
    			lines, err := constraint.PlusBuildLines(x)
    			if err != nil {
    				lines = []string{"// +build error: " + err.Error()}
    			}
    			for _, line := range lines {
    				block = append(block, tabwriter.Escape)
    				block = append(block, line...)
    				block = append(block, tabwriter.Escape, '\n')
    			}
    		}
    	}
    	block = append(block, '\n')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. scripts/lint.sh

    Sebastián Ramírez <******@****.***> 1714435394 -0700
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 30 00:03:14 UTC 2024
    - 125 bytes
    - Viewed (0)
  4. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/report/Line.java

    import java.util.Arrays;
    import java.util.List;
    import java.util.stream.Collectors;
    import java.util.stream.IntStream;
    
    public class Line {
        String label;
        List<List<Number>> data;
    
        public Line(MeasuredOperationList measuredOperations) {
            List<Double> points = measuredOperations.getTotalTime().asDoubleList();
            this.label = measuredOperations.getName();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/JULRedirectorTest.groovy

                    'handlers = java.util.logging.ConsoleHandler' + EOL +
                    '.level = FINEST' + EOL +
                    'java.util.logging.ConsoleHandler.formatter = ' + DummyFormatter.class.name + EOL +
                    'java.util.logging.ConsoleHandler.level = FINEST' + EOL +
                    'hello.level = INFO' + EOL +
                    'hello.world.level = FINER' + EOL))
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/PropertiesUtils.java

            List<String> lines = Lists.newArrayList(Splitter.on(systemLineSeparator).omitEmptyStrings().split(rawContents));
            int lastCommentLine = -1;
            for (int lineNo = 0, len = lines.size(); lineNo < len; lineNo++) {
                String line = lines.get(lineNo);
                if (line.startsWith("#")) {
                    lastCommentLine = lineNo;
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 14:17:21 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/framepointer/framepointer.go

    		if err != nil {
    			return nil, err
    		}
    
    		lines := strings.SplitAfter(string(content), "\n")
    		active := false
    		for lineno, line := range lines {
    			lineno++
    
    			// Ignore comments and commented-out code.
    			if i := strings.Index(line, "//"); i >= 0 {
    				line = line[:i]
    			}
    			line = strings.TrimSpace(line)
    
    			// We start checking code at a TEXT line for a frameless function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/SmallCharMatcher.java

    import com.google.common.base.CharMatcher.NamedFastMatcher;
    import java.util.BitSet;
    
    /**
     * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
     * linear probing to check for matches.
     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    @ElementTypesAreNonnullByDefault
    final class SmallCharMatcher extends NamedFastMatcher {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. src/net/parse_test.go

    	if file == nil {
    		t.Fatal(err)
    	}
    	defer file.close()
    
    	lineno := 1
    	byteno := 0
    	for {
    		bline, berr := br.ReadString('\n')
    		if n := len(bline); n > 0 {
    			bline = bline[0 : n-1]
    		}
    		line, ok := file.readLine()
    		if (berr != nil) != !ok || bline != line {
    			t.Fatalf("%s:%d (#%d)\nbufio => %q, %v\nnet => %q, %v", filename, lineno, byteno, bline, berr, line, ok)
    		}
    		if !ok {
    			break
    		}
    		lineno++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 00:04:48 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/SmallCharMatcher.java

    import com.google.common.base.CharMatcher.NamedFastMatcher;
    import java.util.BitSet;
    
    /**
     * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
     * linear probing to check for matches.
     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    @ElementTypesAreNonnullByDefault
    final class SmallCharMatcher extends NamedFastMatcher {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top