Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for withDefaultStmt (0.42 sec)

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

    func (p XPos) WithNotStmt() XPos {
    	p.lico = p.lico.withNotStmt()
    	return p
    }
    
    // WithDefaultStmt returns the same location with undetermined is_stmt
    func (p XPos) WithDefaultStmt() XPos {
    	p.lico = p.lico.withDefaultStmt()
    	return p
    }
    
    // WithIsStmt returns the same location to be marked with DWARF is_stmt=1
    func (p XPos) WithIsStmt() XPos {
    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/xpos_test.go

    			t.Errorf("got %v; want %v", got, want)
    		}
    
    		for _, x := range []struct {
    			f func(XPos) XPos
    			e uint
    		}{
    			{XPos.WithDefaultStmt, PosDefaultStmt},
    			{XPos.WithIsStmt, PosIsStmt},
    			{XPos.WithNotStmt, PosNotStmt},
    			{XPos.WithIsStmt, PosIsStmt},
    			{XPos.WithDefaultStmt, PosDefaultStmt},
    			{XPos.WithNotStmt, PosNotStmt}} {
    			xposWith := x.f(xpos)
    			expected := x.e
    			if xpos.Line() == 0 && xpos.Col() == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/numberlines.go

    				note(v.Pos)
    				// skip ahead to better instruction for this line if possible
    				i = nextGoodStatementIndex(v, i, b)
    				v = b.Values[i]
    				firstPosIndex = i
    				firstPos = v.Pos
    				v.Pos = firstPos.WithDefaultStmt() // default to default
    				break
    			}
    		}
    
    		if firstPosIndex == -1 { // Effectively empty block, check block's own Pos, consider preds.
    			line := src.NoXPos
    			for _, p := range b.Preds {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 21:26:13 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top