Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RelLine (0.08 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)
Back to top