Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cancelvars (0.08 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    				// do not analyze it.
    				if funcScope.Contains(v.Pos()) {
    					cancelvars[v] = stmt
    				}
    			} else if v, ok := pass.TypesInfo.Defs[id].(*types.Var); ok {
    				cancelvars[v] = stmt
    			}
    		}
    		return true
    	})
    
    	if len(cancelvars) == 0 {
    		return // no need to inspect CFG
    	}
    
    	// Obtain the CFG.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top