const Doc … var Analyzer … func run(pass *analysis.Pass) (interface{ … } // checkLongShift checks if shift or shift-assign operations shift by more than // the length of the underlying variable. func checkLongShift(pass *analysis.Pass, node ast.Node, x, y ast.Expr) { … }