Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkSuspect (0.55 sec)

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

    		}
    	}
    }
    
    // checkSuspect checks for expressions of the form
    //
    //	x != c1 || x != c2
    //	x == c1 && x == c2
    //
    // where c1 and c2 are constant expressions.
    // If c1 and c2 are the same then it's redundant;
    // if c1 and c2 are different then it's always true or always false.
    // Exprs must contain only side effect free expressions.
    func (op boolOp) checkSuspect(pass *analysis.Pass, exprs []ast.Expr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top