mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
C#: Rename some of the TBinarySignOperation constructors.
This commit is contained in:
@@ -394,21 +394,21 @@ module ExprNode {
|
||||
class LeftShiftExpr extends BinaryOperation {
|
||||
override CS::LeftShiftExpr e;
|
||||
|
||||
override TLShiftOp getOp() { any() }
|
||||
override TLeftShiftOp getOp() { any() }
|
||||
}
|
||||
|
||||
/** A right-shift operation. */
|
||||
class RightShiftExpr extends BinaryOperation {
|
||||
override CS::RightShiftExpr e;
|
||||
|
||||
override TRShiftOp getOp() { any() }
|
||||
override TRightShiftOp getOp() { any() }
|
||||
}
|
||||
|
||||
/** An unsigned right-shift operation. */
|
||||
class UnsignedRightShiftExpr extends BinaryOperation {
|
||||
override CS::UnsignedRightShiftExpr e;
|
||||
|
||||
override TURShiftOp getOp() { any() }
|
||||
override TUnsignedRightShiftOp getOp() { any() }
|
||||
}
|
||||
|
||||
/** A conditional expression. */
|
||||
|
||||
@@ -18,9 +18,9 @@ newtype TBinarySignOperation =
|
||||
TBitAndOp() or
|
||||
TBitOrOp() or
|
||||
TBitXorOp() or
|
||||
TLShiftOp() or
|
||||
TRShiftOp() or
|
||||
TURShiftOp()
|
||||
TLeftShiftOp() or
|
||||
TRightShiftOp() or
|
||||
TUnsignedRightShiftOp()
|
||||
|
||||
/** Class representing expression signs (+, -, 0). */
|
||||
class Sign extends TSign {
|
||||
@@ -271,10 +271,10 @@ class Sign extends TSign {
|
||||
or
|
||||
op = TBitXorOp() and result = bitxor(s)
|
||||
or
|
||||
op = TLShiftOp() and result = lshift(s)
|
||||
op = TLeftShiftOp() and result = lshift(s)
|
||||
or
|
||||
op = TRShiftOp() and result = rshift(s)
|
||||
op = TRightShiftOp() and result = rshift(s)
|
||||
or
|
||||
op = TURShiftOp() and result = urshift(s)
|
||||
op = TUnsignedRightShiftOp() and result = urshift(s)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user