Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    // means we can't see it.
    func argCanBeChecked(pass *analysis.Pass, call *ast.CallExpr, formatArg int, state *formatState) bool {
    	argNum := state.argNums[formatArg]
    	if argNum <= 0 {
    		// Shouldn't happen, so catch it with prejudice.
    		panic("negative arg num")
    	}
    	if argNum < len(call.Args)-1 {
    		return true // Always OK.
    	}
    	if call.Ellipsis.IsValid() {
    		return false // We just can't tell; there could be many more arguments.
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
Back to top