Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for RelLine (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                                "d", (Collection<String>) ImmutableSortedSet.of("david", "dead")),
                            Helpers.mapEntry(
                                "e", (Collection<String>) ImmutableSortedSet.of("eric", "elaine")));
                      }
    
                      @SuppressWarnings("unchecked")
                      @Override
                      public Entry<String, Collection<String>>[] createArray(int length) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 22.6K bytes
    - Viewed (0)
Back to top