Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for lineAt (0.1 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. src/cmd/internal/objabi/line.go

    Russ Cox <******@****.***> 1669995570 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 23:10:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/line.go

    }
    
    // getFileIndexAndLine returns the relative file index (local to the CU), and
    // the relative line number for a position (i.e., as adjusted by a //line
    // directive). This is the file/line visible in the final binary (pcfile, pcln,
    // etc).
    func (ctxt *Link) getFileIndexAndLine(xpos src.XPos) (int, int32) {
    	pos := ctxt.InnermostPos(xpos)
    	if !pos.IsKnown() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 892 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/JavaUtilLoggingSystemIntegrationTest.groovy

                        assert logger.isLoggable(Level.CONFIG)
                        assert logger.isLoggable(Level.FINE)
                        assert !logger.isLoggable(Level.FINER)
                        assert !logger.isLoggable(Level.FINEST)
                    }
                }
            """
    
            when:
            executer.withArgument("--debug")
    
            then:
            succeeds('isLoggable')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testfortran/fortran_test.go

    		// with the C linker, this may be in a path the C linker can't
    		// find on its own. (See #14544)
    		libExt := "so"
    		switch runtime.GOOS {
    		case "darwin":
    			libExt = "dylib"
    		case "aix":
    			libExt = "a"
    		}
    		libPath, err := exec.Command(fc, append([]string{"-print-file-name=libgfortran." + libExt}, fcExtra...)...).CombinedOutput()
    		if err != nil {
    			t.Errorf("error invoking %s: %s", fc, err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 01:29:16 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. 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)
Back to top