Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RelFilename (0.17 sec)

  1. src/cmd/compile/internal/syntax/pos.go

    //	r >  0: p is after q
    //
    // If p and q are in different files, p is before q if the filename
    // of p sorts lexicographically before the filename of q.
    func (p Pos) Cmp(q Pos) int {
    	pname := p.RelFilename()
    	qname := q.RelFilename()
    	switch {
    	case pname < qname:
    		return -1
    	case pname > qname:
    		return +1
    	}
    
    	pline := p.Line()
    	qline := q.Line()
    	switch {
    	case pline < qline:
    		return -1
    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/compile/internal/types2/resolver.go

    	file := check.files[fileNo]
    	if pos := file.Pos(); pos.IsKnown() {
    		// return check.fset.File(pos).Name()
    		// TODO(gri) do we need the actual file name here?
    		return pos.RelFilename()
    	}
    	return fmt.Sprintf("file[%d]", fileNo)
    }
    
    func (check *Checker) importPackage(pos syntax.Pos, path, dir string) *Package {
    	// If we already have a package for the given (path, dir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top