Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for baseIndex (0.22 sec)

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

    }
    
    // XPos returns the corresponding XPos for the given pos,
    // adding pos to t if necessary.
    func (t *PosTable) XPos(pos Pos) XPos {
    	return XPos{t.baseIndex(pos.base), pos.lico}
    }
    
    func (t *PosTable) baseIndex(base *PosBase) int32 {
    	if base == nil {
    		return 0
    	}
    
    	if i, ok := t.indexMap[base]; ok {
    		return int32(i)
    	}
    
    	if base.fileIndex >= 0 {
    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/cgo/internal/testerrors/argposition_test.go

    func (v *Visitor) Visit(node ast.Node) ast.Visitor {
    	if ident, ok := node.(*ast.Ident); ok {
    		if expectedPositions, ok := v.identPosInfo[ident.Name]; ok {
    			gotMatch := false
    			var errorMessage strings.Builder
    			for caseIndex, expectedPos := range expectedPositions {
    				actualPosition := v.fset.PositionFor(ident.Pos(), true)
    				errorOccured := false
    				if expectedPos.Line != actualPosition.Line {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top