Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SameLine (0.08 sec)

  1. src/cmd/internal/src/xpos.go

    	return p.index == q.index
    }
    
    // SameFileAndLine reports whether p and q are positions on the same line in the same file.
    func (p XPos) SameFileAndLine(q XPos) bool {
    	return p.index == q.index && p.lico.SameLine(q.lico)
    }
    
    // After reports whether the position p comes after q in the source.
    // For positions with different bases, ordering is by base index.
    func (p XPos) After(q XPos) bool {
    	n, m := p.index, q.index
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/cmd/internal/src/pos.go

    		col = colMax
    	}
    	// default is not-sure-if-statement
    	return makeLicoRaw(line, col)
    }
    
    func (x lico) Line() uint           { return uint(x) >> lineShift }
    func (x lico) SameLine(y lico) bool { return 0 == (x^y)&^lico(1<<lineShift-1) }
    func (x lico) Col() uint            { return uint(x) >> colShift & colMax }
    func (x lico) IsStmt() uint {
    	if x == 0 {
    		return PosNotStmt
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 15.5K bytes
    - Viewed (0)
Back to top