- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for RelLine (0.36 sec)
-
src/cmd/internal/src/pos_test.go
// relative info if got := pos.RelFilename(); got != test.relFilename { t.Errorf("%s: got relFilename %q; want %q", test.string, got, test.relFilename) } if got := pos.RelLine(); got != test.relLine { t.Errorf("%s: got relLine %d; want %d", test.string, got, test.relLine) } if got := pos.RelCol(); got != test.relCol { t.Errorf("%s: got relCol %d; want %d", test.string, got, test.relCol) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 14 23:50:26 UTC 2022 - 8.4K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/pos.go
b := pos.base for b != nil && b != b.pos.base { b = b.pos.base } // b == nil || b == b.pos.base return b } func (pos Pos) RelFilename() string { return pos.base.Filename() } func (pos Pos) RelLine() uint { b := pos.base if b.Line() == 0 { // base line is unknown => relative line is unknown return 0 } return b.Line() + (pos.Line() - b.Pos().Line()) } func (pos Pos) RelCol() uint {
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/cmd/internal/obj/line.go
// etc). func (ctxt *Link) getFileIndexAndLine(xpos src.XPos) (int, int32) { pos := ctxt.InnermostPos(xpos) if !pos.IsKnown() { pos = src.Pos{} } return pos.FileIndex(), int32(pos.RelLine())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 892 bytes - Viewed (0) -
src/cmd/internal/src/pos.go
// RelFilename returns the filename recorded with the position's base. func (p Pos) RelFilename() string { return p.base.Filename() } // RelLine returns the line number relative to the position's base. func (p Pos) RelLine() uint { b := p.base if b.Line() == 0 { // base line is unknown => relative line is unknown return 0 } return b.Line() + (p.Line() - b.Pos().Line()) }
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/dwarf/dwarf.go
// TODO(mdempsky): Shouldn't we write out StartPos.FileIndex() too? putattr(ctxt, s.Absfn, abbrev, DW_FORM_udata, DW_CLS_CONSTANT, int64(s.StartPos.RelLine()), nil) var ev int64 if s.External { ev = 1 } putattr(ctxt, s.Absfn, abbrev, DW_FORM_flag, DW_CLS_FLAG, ev, 0) // Child variables (may be empty) var flattened []*Var
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 43K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser_test.go
} pos := perr.Pos if filename := pos.RelFilename(); filename != test.filename { t.Errorf("%s: got filename = %q; want %q", test.src, filename, test.filename) } if line := pos.RelLine(); line != test.line { t.Errorf("%s: got line = %d; want %d", test.src, line, test.line) } if col := pos.RelCol(); col != test.col { t.Errorf("%s: got col = %d; want %d", test.src, col, test.col) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 16:30:19 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/compile/internal/dwarfgen/dwinl.go
m := make(map[varPos]int) for i, n := range dcl { pos := base.Ctxt.InnermostPos(n.Pos()) vp := varPos{ DeclName: n.Sym().Name, DeclFile: pos.RelFilename(), DeclLine: pos.RelLine(), DeclCol: pos.RelCol(), } if _, found := m[vp]; found {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:45:07 UTC 2024 - 12.8K bytes - Viewed (0) -
src/cmd/internal/obj/dwarf.go
if ctxt.DebugInfo != nil { scopes, inlcalls = ctxt.DebugInfo(s, info, curfn) } var err error dwctxt := dwCtxt{ctxt} startPos := ctxt.InnermostPos(textPos(s)) if !startPos.IsKnown() || startPos.RelLine() != uint(s.Func().StartLine) { panic("bad startPos") } fnstate := &dwarf.FnState{ Name: s.Name, Info: info, Loc: loc, Ranges: ranges,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 20:40:28 UTC 2023 - 22K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Mar 07 18:34:03 UTC 2024 - 22.6K bytes - Viewed (0) -
src/main/webapp/js/admin/moment-with-locales.min.js
DateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:Hs,ss:Hs,m:Hs,mm:Hs,h:Hs,hh:Hs,d:Hs,dd:"%d p\xe4eva",M:Hs,MM:Hs,y:Hs,yy:Hs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),l.defineLocale("eu",{...
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Jul 12 13:18:07 UTC 2018 - 319K bytes - Viewed (0)