- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewLineBase (0.18 sec)
-
src/cmd/compile/internal/syntax/pos.go
return base } // NewLineBase returns a new PosBase for a line directive "line filename:line:col" // relative to pos, which is the position of the character immediately following // the comment containing the line directive. For a directive in a line comment, // that position is the beginning of the next line (i.e., the newline character // belongs to the line comment).
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/internal/gcimporter/ureader.go
if r.Bool() { // file base // Was: "b = token.NewTrimmedFileBase(filename, true)" } else { // line base pos := r.pos() line := r.Uint() col := r.Uint() // Was: "b = token.NewLineBase(pos, filename, true, line, col)" _, _, _ = pos, line, col } pr.retireReader(r) } b := filename pr.posBases[idx] = b return b } // @@@ Packages
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
filename := text[:i-1] // lop off ":line" trimmed := false if filename == "" && ok2 { filename = p.base.Filename() trimmed = p.base.Trimmed() } p.base = NewLineBase(pos, filename, trimmed, line, col) } func commentText(s string) string { if s[:2] == "/*" { return s[2 : len(s)-2] // lop off /* and */ } // line comment (does not include newline)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0)