handle kotlin shifts like bitwise binary ops

This commit is contained in:
Kevin Bierhoff
2019-11-25 12:28:06 -08:00
committed by xiexed
parent a9baec4727
commit e8252ea874
5 changed files with 158 additions and 1 deletions
+98
View File
@@ -0,0 +1,98 @@
UFile (package = )
UClass (name = BitwiseKt)
UAnnotationMethod (name = foo)
UBlockExpression
UDeclarationsExpression
ULocalVariable (name = mask)
ULiteralExpression (value = 127)
UDeclarationsExpression
ULocalVariable (name = x)
ULiteralExpression (value = 2863311530)
UDeclarationsExpression
ULocalVariable (name = pos)
UBinaryExpression (operator = &)
USimpleNameReferenceExpression (identifier = x)
USimpleNameReferenceExpression (identifier = mask)
UDeclarationsExpression
ULocalVariable (name = max)
UBinaryExpression (operator = |)
USimpleNameReferenceExpression (identifier = x)
USimpleNameReferenceExpression (identifier = mask)
UDeclarationsExpression
ULocalVariable (name = zebra)
UBinaryExpression (operator = ^)
USimpleNameReferenceExpression (identifier = x)
USimpleNameReferenceExpression (identifier = mask)
UDeclarationsExpression
ULocalVariable (name = signed)
UBinaryExpression (operator = >>)
USimpleNameReferenceExpression (identifier = x)
ULiteralExpression (value = 2)
UDeclarationsExpression
ULocalVariable (name = one)
UBinaryExpression (operator = >>>)
USimpleNameReferenceExpression (identifier = x)
ULiteralExpression (value = 31)
UDeclarationsExpression
ULocalVariable (name = zero)
UBinaryExpression (operator = <<)
USimpleNameReferenceExpression (identifier = x)
ULiteralExpression (value = 32)
UReturnExpression
UBinaryExpression (operator = -)
UBinaryExpression (operator = +)
USimpleNameReferenceExpression (identifier = pos)
USimpleNameReferenceExpression (identifier = zero)
UBinaryExpression (operator = /)
UBinaryExpression (operator = *)
USimpleNameReferenceExpression (identifier = zebra)
USimpleNameReferenceExpression (identifier = signed)
USimpleNameReferenceExpression (identifier = one)
UAnnotationMethod (name = bar)
UBlockExpression
UDeclarationsExpression
ULocalVariable (name = mask)
ULiteralExpression (value = 127)
UDeclarationsExpression
ULocalVariable (name = x)
ULiteralExpression (value = 6148914691236517205)
UDeclarationsExpression
ULocalVariable (name = pos)
UBinaryExpression (operator = &)
USimpleNameReferenceExpression (identifier = x)
USimpleNameReferenceExpression (identifier = mask)
UDeclarationsExpression
ULocalVariable (name = max)
UBinaryExpression (operator = |)
USimpleNameReferenceExpression (identifier = x)
USimpleNameReferenceExpression (identifier = mask)
UDeclarationsExpression
ULocalVariable (name = zebra)
UBinaryExpression (operator = ^)
USimpleNameReferenceExpression (identifier = x)
USimpleNameReferenceExpression (identifier = mask)
UDeclarationsExpression
ULocalVariable (name = signed)
UBinaryExpression (operator = >>)
USimpleNameReferenceExpression (identifier = x)
ULiteralExpression (value = 2)
UDeclarationsExpression
ULocalVariable (name = one)
UBinaryExpression (operator = >>>)
USimpleNameReferenceExpression (identifier = x)
ULiteralExpression (value = 63)
UDeclarationsExpression
ULocalVariable (name = zero)
UBinaryExpression (operator = <<)
USimpleNameReferenceExpression (identifier = x)
ULiteralExpression (value = 64)
UReturnExpression
UBinaryExpression (operator = -)
UBinaryExpression (operator = +)
USimpleNameReferenceExpression (identifier = pos)
USimpleNameReferenceExpression (identifier = zero)
UBinaryExpression (operator = /)
UBinaryExpression (operator = *)
USimpleNameReferenceExpression (identifier = zebra)
USimpleNameReferenceExpression (identifier = signed)
USimpleNameReferenceExpression (identifier = one)