Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkLongShift (0.62 sec)

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

    			if node.Op == token.SHL || node.Op == token.SHR {
    				checkLongShift(pass, node, node.X, node.Y)
    			}
    		case *ast.AssignStmt:
    			if len(node.Lhs) != 1 || len(node.Rhs) != 1 {
    				return
    			}
    			if node.Tok == token.SHL_ASSIGN || node.Tok == token.SHR_ASSIGN {
    				checkLongShift(pass, node, node.Lhs[0], node.Rhs[0])
    			}
    		}
    	})
    	return nil, nil
    }
    
    // checkLongShift checks if shift or shift-assign operations shift by more than
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top