- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for lineFor (0.2 sec)
-
src/cmd/internal/obj/line_test.go
lfile := src.NewLinePragmaBase(src.MakePos(afile, 8, 1), "linedir", "linedir", 100, 1) var tests = []struct { pos src.Pos want string }{ {src.NoPos, "??:0"}, {src.MakePos(afile, 1, 0), "a.go:1"}, {src.MakePos(afile, 2, 0), "a.go:2"}, {src.MakePos(bfile, 10, 4), "/foo/bar/b.go:10"}, {src.MakePos(lfile, 10, 0), "linedir:102"}, // 102 == 100 + (10 - (7+1)) } for _, test := range tests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/PropertiesUtils.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 14:17:21 UTC 2024 - 5.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/framepointer/framepointer.go
content, tf, err := analysisutil.ReadFile(pass, fname) 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 2.4K bytes - Viewed (0) -
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) -
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) -
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) -
pkg/scheduler/framework/plugins/helper/shape_score.go
type FunctionShapePoint struct { // Utilization is function argument. Utilization int64 // Score is function value. Score int64 } // BuildBrokenLinearFunction creates a function which is built using linear segments. Segments are defined via shape array. // Shape[i].Utilization slice represents points on "Utilization" axis where different segments meet. // Shape[i].Score represents function values at meeting points. //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 1.7K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/break.go
buf.WriteString(s.prefix) buf.WriteString(b.raw) buf.WriteByte('\n') } func newHR(p *parseState, s line) (line, bool) { if isHR(s) { p.doneBlock(&ThematicBreak{Position{p.lineno, p.lineno}, s.string()}) return line{}, true } return s, false } func isHR(s line) bool { t := s t.trimSpace(0, 3, false) switch c := t.peek(); c { case '-', '_', '*': for i := 0; ; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 1.9K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/heading.go
id, s = extractID(p, s) // Goldmark is strict about the id syntax. for _, c := range id { if c >= 0x80 || !isLetterDigit(byte(c)) { p.corner = true } } } pos := Position{p.lineno, p.lineno} p.doneBlock(&Heading{pos, n, p.newText(pos, s), id}) return line{}, true } return s, false } // extractID removes an ID attribute from s if one is present.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/nowb.go
// Record the path. funcs[target] = nowritebarrierrecCall{target: src, lineno: pos} q.PushRight(target.Nname) } for !q.Empty() { fn := q.PopLeft().Func // Check fn. if fn.WBPos.IsKnown() { var err strings.Builder call := funcs[fn] for call.target != nil { fmt.Fprintf(&err, "\n\t%v: called by %v", base.FmtPos(call.lineno), call.target.Nname) call = funcs[call.target] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 17:29:46 UTC 2024 - 5.9K bytes - Viewed (0)