- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 133 for mpos (0.04 sec)
-
src/go/types/instantiate.go
func (check *Checker) validateTArgLen(pos token.Pos, name string, want, got int) bool { var qual string switch { case got < want: qual = "not enough" case got > want: qual = "too many" default: return true } msg := check.sprintf("%s type arguments for type %s: have %d, want %d", qual, name, got, want) if check != nil { check.error(atPos(pos), WrongTypeArgCount, msg) return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
// firstInSrc reports the index of the object with the "smallest" // source position in path. path must not be empty. func firstInSrc(path []Object) int { fst, pos := 0, path[0].Pos() for i, t := range path[1:] { if cmpPos(t.Pos(), pos) < 0 { fst, pos = i+1, t.Pos() } } return fst } func (check *Checker) constDecl(obj *Const, typ, init syntax.Expr, inherited bool) { assert(obj.typ == nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go
rb.nbyte += utf8.UTFMax rb.rune[rb.nrune] = Properties{pos: bn, size: uint8(sz)} rb.nrune++ } // assignRune sets a rune at position pos. It is used for Hangul and recomposition. func (rb *reorderBuffer) assignRune(pos int, r rune) { bn := rb.rune[pos].pos sz := utf8.EncodeRune(rb.byte[bn:], rune(r)) rb.rune[pos] = Properties{pos: bn, size: uint8(sz)} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build_read.go
} } if err != nil { if err == io.EOF { r.eof = true } else if r.err == nil { r.err = err } return 0 } r.pos.Offset++ if c == '\n' { r.pos.Line++ r.pos.Column = 1 } else { r.pos.Column++ } return c } // peekByte returns the next byte from the input reader but does not advance beyond it.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 10:10:21 UTC 2023 - 13K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/abi.go
} // Q: is this needed? savepos := base.Pos savedcurfn := ir.CurFunc pos := base.AutogeneratedPos base.Pos = pos // At the moment we don't support wrapping a method, we'd need machinery // below to handle the receiver. Panic if we see this scenario. ft := f.Nname.Type() if ft.NumRecvs() != 0 { base.ErrorfAt(f.Pos(), 0, "makeABIWrapper support for wrapping methods not implemented")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 13.8K bytes - Viewed (0) -
src/go/types/call.go
if i, err := check.verify(pos, tparams, targs, check.context()); err != nil { // best position for error reporting pos := pos if i < len(xlist) { pos = xlist[i].Pos() } check.softErrorf(atPos(pos), InvalidTypeArg, "%s", err) } else { check.mono.recordInstance(check.pkg, pos, tparams, targs, xlist) } }).describef(atPos(pos), "verify instantiation") return inst }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 33.5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
if (finish < offset + n) { finish += block_size_; } size_t total_bytes_transferred = 0; // Now iterate through the blocks, reading them one at a time. for (size_t pos = start; pos < finish; pos += block_size_) { Key key = std::make_pair(filename, pos); // Look up the block, fetching and inserting it if necessary, and update the // LRU iterator for the key and block. std::shared_ptr<Block> block = Lookup(key);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 16 01:39:09 UTC 2020 - 11.1K bytes - Viewed (0) -
tensorflow/cc/gradients/linalg_grad.cc
std::vector<absl::string_view> splits = absl::StrSplit(subscripts, kEllipsis); auto index = splits[0].find(label); if (index != splits[0].npos) { return index; } if (splits.size() < 2) { return absl::nullopt; } index = splits[1].find(label); if (index != splits[1].npos) { return index - splits[1].length(); } return absl::nullopt; } // Returns a tuple denoting the slice mapping to ellipsis.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 07 23:11:54 UTC 2022 - 20.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/config.go
// some logging calls account for more than a few heap allocations. Log() bool // Fatalf reports a compiler error and exits. Fatalf(pos src.XPos, msg string, args ...interface{}) // Warnl writes compiler messages in the form expected by "errorcheck" tests Warnl(pos src.XPos, fmt_ string, args ...interface{}) // Forwards the Debug flags from gc Debug_checknil() bool } type Frontend interface { Logger
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:11:47 UTC 2024 - 12.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
// return // } } value = str[0:pos] // grab the elements of the suffix suffixStart := pos for i := pos; ; i++ { if i >= end { suffix = str[suffixStart:end] return } if !strings.ContainsAny(str[i:i+1], "eEinumkKMGTP") { pos = i break } } if pos < end { switch str[pos] { case '-', '+': pos++ } } Suffix: for i := pos; ; i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 23.8K bytes - Viewed (0)