- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,406 for posTable (0.15 sec)
-
src/cmd/internal/src/xpos_test.go
"unsafe" ) func TestNoXPos(t *testing.T) { var tab PosTable if tab.Pos(NoXPos) != NoPos { t.Errorf("failed to translate NoXPos to Pos using zero PosTable") } } func TestConversion(t *testing.T) { b1 := NewFileBase("b1", "b1") b2 := NewFileBase("b2", "b2") b3 := NewLinePragmaBase(MakePos(b1, 10, 0), "b3", "b3", 123, 0) var tab PosTable for _, want := range []Pos{ NoPos,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 2.7K bytes - Viewed (0) -
src/cmd/internal/src/xpos.go
} // AtColumn1 returns the same location but shifted to column 1. func (p XPos) AtColumn1() XPos { p.lico = p.lico.atColumn1() return p } // A PosTable tracks Pos -> XPos conversions and vice versa. // Its zero value is a ready-to-use PosTable. type PosTable struct { baseList []*PosBase indexMap map[*PosBase]int nameMap map[string]int // Maps file symbol name to index for debug information. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/internal/obj/line_test.go
{src.MakePos(lfile, 10, 0), "linedir:102"}, // 102 == 100 + (10 - (7+1)) } for _, test := range tests { fileIndex, line := ctxt.getFileIndexAndLine(ctxt.PosTable.XPos(test.pos)) file := "??" if fileIndex >= 0 { file = ctxt.PosTable.FileTable()[fileIndex] } got := fmt.Sprintf("%s:%d", file, line) if got != test.want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 1.2K bytes - Viewed (0) -
src/debug/dwarf/line_test.go
} // Check that entries match when seeking backward. for i := len(posTable) - 1; i >= 0; i-- { lr.Seek(posTable[i]) err := lr.Next(&line) if i == len(posTable)-1 { if err != io.EOF { t.Fatal("expected io.EOF after seek to end, got", err) } } else if err != nil { t.Fatal("lr.Next after seek to", posTable[i], "failed:", err) } else if line != table[i] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 18 20:34:36 UTC 2023 - 14.5K bytes - Viewed (0) -
src/cmd/internal/obj/inl.go
pos := ctxt.InnermostPos(xpos) outerxpos := xpos for ix := pos.Base().InliningIndex(); ix >= 0; { call := ctxt.InlTree.nodes[ix] ix = call.Parent outerxpos = call.Pos } return ctxt.PosTable.Pos(outerxpos) } // InnermostPos returns the innermost position corresponding to xpos, // that is, the code that is inlined and that inlines nothing else.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 22:47:15 UTC 2023 - 4.4K bytes - Viewed (0) -
src/cmd/internal/obj/plist.go
return } s.NewFuncInfo() if s.OnList() { ctxt.Diag("%s: symbol %s redeclared", ctxt.PosTable.Pos(start), s.Name) return } if strings.HasPrefix(s.Name, `"".`) { ctxt.Diag("%s: unqualified symbol name: %s", ctxt.PosTable.Pos(start), s.Name) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 11.5K bytes - Viewed (0) -
src/cmd/compile/internal/noder/posmap.go
// Predeclared objects (e.g., the result parameter for error.Error) // do not have a position. if !pos.IsKnown() { return src.NoXPos } posBase := m.makeSrcPosBase(pos.Base()) return base.Ctxt.PosTable.XPos(src.MakePos(posBase, pos.Line(), pos.Col())) } // makeSrcPosBase translates from a *syntax.PosBase to a *src.PosBase. func (m *posMap) makeSrcPosBase(b0 *syntax.PosBase) *src.PosBase {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 27 03:43:35 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/internal/src/pos.go
func (p Pos) AbsFilename() string { return p.base.AbsFilename() } // FileIndex returns the file index of the position's base's absolute // filename within the PosTable that it was registered. func (p Pos) FileIndex() int { return p.base.FileIndex() } func (p Pos) String() string { return p.Format(true, true) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 15.5K bytes - Viewed (0) -
src/cmd/internal/obj/objfile.go
return } if strings.HasPrefix(s.Name, `"".`) { w.ctxt.Diag("unqualified symbol name: %v", s.Name) } w.AddString(s.Name) }) // All filenames are in the postable. for _, f := range w.ctxt.PosTable.FileTable() { w.AddString(filepath.ToSlash(f)) } } // cutoff is the maximum data section size permitted by the linker // (see issue #9862).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/internal/obj/sym.go
func (ctxt *Link) traverseSyms(flag traverseFlag, fn func(*LSym)) { fnNoNil := func(s *LSym) { if s != nil { fn(s) } } lists := [][]*LSym{ctxt.Text, ctxt.Data} files := ctxt.PosTable.FileTable() for _, list := range lists { for _, s := range list { if flag&traverseDefs != 0 { fn(s) } if flag&traverseRefs != 0 { for _, r := range s.R { fnNoNil(r.Sym) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 14:41:10 UTC 2024 - 14.1K bytes - Viewed (0)