- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 708 for positioned (0.34 sec)
-
src/go/types/util.go
// dddErrPos returns the positioner for reporting an invalid ... use in a call. func dddErrPos(call *ast.CallExpr) positioner { return atPos(call.Ellipsis) } // argErrPos returns positioner for reporting an invalid argument count. func argErrPos(call *ast.CallExpr) positioner { return inNode(call, call.Rparen) } // startPos returns the start position of node n. func startPos(n ast.Node) token.Pos { return n.Pos() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 1.7K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/pos.go
func (p position_) String() string { if p.line == 0 { if p.filename == "" { return "<unknown position>" } return p.filename } if p.col == 0 { return fmt.Sprintf("%s:%d", p.filename, p.line) } return fmt.Sprintf("%s:%d:%d", p.filename, p.line, p.col) } // A PosBase represents the base for relative position information: // At position pos, the relative position is filename:line:col.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 20:44:57 UTC 2024 - 5.6K bytes - Viewed (0) -
src/go/types/errors.go
invalidOp = "invalid operation: " ) // The positioner interface is used to extract the position of type-checker errors. type positioner interface { Pos() token.Pos } func (check *Checker) error(at positioner, code Code, msg string) { err := check.newError(code) err.addf(at, "%s", msg) err.report() } func (check *Checker) errorf(at positioner, code Code, format string, args ...any) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 8.5K bytes - Viewed (0) -
src/encoding/json/testdata/code.json.gz
ksum","kids":[],"cl_weight":0.0004266211604095563,"touches":1,"min_t":1229478785,"max_t":1229478785,"mean_t":1229478785},{"name":"transform-absolute-in-positioned-container-expected.checksum","kids":[],"cl_weight":0.0004982561036372695,"touches":1,"min_t":1228525763,"max_t":1228525763,"mean_t":1228525763},{"name":"transform-absolute-in-positioned-container-expected.png","kids":[],"cl_weight":0.0004982561036372695,"touches":1,"min_t":1228525763,"max_t":1228525763,"mean_t":1228525763},{"name":"out...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 25 04:02:36 UTC 2016 - 117.6K bytes - Viewed (0) -
src/go/types/version.go
) // allowVersion reports whether the current package at the given position // is allowed to use version v. If the position is unknown, the specified // module version (Config.GoVersion) is used. If that version is invalid, // allowVersion returns true. func (check *Checker) allowVersion(at positioner, v goVersion) bool { fileVersion := check.conf.GoVersion if pos := at.Pos(); pos.IsValid() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 23:12:40 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/model/arg_spec.h
static ArgSpec CreateInput(const OpDef::ArgDef& arg_def, int position); static ArgSpec CreateOutput(const OpDef::ArgDef& arg_def, int position); const string& name() const { return name_; } const string& description() const { return description_; } const ArgType arg_type() const { return arg_type_; } const int position() const { return position_; } private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 15 18:23:40 UTC 2021 - 1.8K bytes - Viewed (0) -
src/go/token/example_test.go
for _, decl := range f.Decls { // Get the filename, line, and column back via the file set. // We get both the relative and absolute position. // The relative position is relative to the last line directive. // The absolute position is the exact position in the source. pos := decl.Pos() relPosition := fset.Position(pos) absPosition := fset.PositionFor(pos, false) // Either a FuncDecl or GenDecl, since we exit on error. kind := "func"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:09:31 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/testdata/issue42580.go
import "unsafe" // Test variables var ( checkedPointer = []byte{1} doublePointerChecked = []byte{1} singleInnerPointerChecked = []byte{1} ) // This test checks the positions of variable identifiers. // Changing the positions of the test variables idents after this point will break the test. func TestSingleArgumentCast() C.int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/util.go
package types2 import ( "cmd/compile/internal/syntax" "go/constant" "go/token" ) const isTypes2 = true // cmpPos compares the positions p and q and returns a result r as follows: // // r < 0: p is before q // r == 0: p and q are the same position (but may not be identical) // r > 0: p is after q // // If p and q are in different files, p is before q if the filename
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 2.1K bytes - Viewed (0) -
test/fixedbugs/issue22662b.go
// license that can be found in the LICENSE file. // Verify the impact of line directives on error positions and position formatting. package main import ( "io/ioutil" "log" "os" "os/exec" "strings" ) // Each of these tests is expected to fail (missing package clause) // at the position determined by the preceding line directive. var tests = []struct { src, pos string }{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.8K bytes - Viewed (0)