golang.org/x/mod/modfile.Position.Byte (field)
17 uses
golang.org/x/mod/modfile (current package)
read.go#L23: Byte int // byte in input (starting at 0)
read.go#L28: p.Byte += len(s)
read.go#L346: pos: Position{Line: 1, LineRune: 1, Byte: 0},
read.go#L437: in.pos.Byte += size
read.go#L524: i := bytes.LastIndex(in.complete[:in.pos.Byte], []byte("\n"))
read.go#L525: suffix := len(bytes.TrimSpace(in.complete[i+1:in.pos.Byte])) > 0
read.go#L688: fmt.Fprintf(os.Stderr, "LINE %q :%d:%d #%d\n", c.Token, c.Start.Line, c.Start.LineRune, c.Start.Byte)
read.go#L696: fmt.Fprintf(os.Stderr, "pre %T :%d:%d #%d\n", x, start.Line, start.LineRune, start.Byte)
read.go#L699: for len(line) > 0 && start.Byte >= line[0].Start.Byte {
read.go#L701: fmt.Fprintf(os.Stderr, "ASSIGN LINE %q #%d\n", line[0].Token, line[0].Start.Byte)
read.go#L713: fmt.Fprintf(os.Stderr, "SUFFIX %q :%d:%d #%d\n", c.Token, c.Start.Line, c.Start.LineRune, c.Start.Byte)
read.go#L723: fmt.Fprintf(os.Stderr, "post %T :%d:%d #%d :%d:%d #%d\n", x, start.Line, start.LineRune, start.Byte, end.Line, end.LineRune, end.Byte)
read.go#L744: for len(suffix) > 0 && end.Byte <= suffix[len(suffix)-1].Start.Byte {
read.go#L746: fmt.Fprintf(os.Stderr, "ASSIGN SUFFIX %q #%d\n", suffix[len(suffix)-1].Token, suffix[len(suffix)-1].Start.Byte)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |