- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for lineAt (0.15 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
okhttp/src/test/java/okhttp3/TestLogHandler.kt
} } private var previousLevel: Level? = null override fun beforeEach(context: ExtensionContext?) { previousLevel = logger.level logger.addHandler(handler) logger.setLevel(Level.FINEST) } override fun afterEach(context: ExtensionContext?) { logger.setLevel(previousLevel) logger.removeHandler(handler) } override fun apply( base: Statement,
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.6K bytes - Viewed (0)