Fix operator markup for '!==' and '!in'.

This commit is contained in:
Dmitry Petrov
2016-08-25 08:55:27 +03:00
committed by Dmitry Petrov
parent 6830a7db43
commit abb106c885
3 changed files with 5 additions and 5 deletions
@@ -150,7 +150,7 @@ class OperatorExpressionGenerator(
IrOperator.IN -> IrOperator.IN ->
irContainsCall irContainsCall
IrOperator.NOT_IN -> IrOperator.NOT_IN ->
IrUnaryPrimitiveImpl(expression.startOffset, expression.endOffset, IrOperator.EXCL, context.irBuiltIns.booleanNot, IrUnaryPrimitiveImpl(expression.startOffset, expression.endOffset, IrOperator.NOT_IN, context.irBuiltIns.booleanNot,
irContainsCall) irContainsCall)
else -> else ->
throw AssertionError("Unexpected in-operator $irOperator") throw AssertionError("Unexpected in-operator $irOperator")
@@ -170,7 +170,7 @@ class OperatorExpressionGenerator(
IrOperator.EQEQEQ -> IrOperator.EQEQEQ ->
irIdentityEquals irIdentityEquals
IrOperator.EXCLEQEQ -> IrOperator.EXCLEQEQ ->
IrUnaryPrimitiveImpl(expression.startOffset, expression.endOffset, IrOperator.EXCL, context.irBuiltIns.booleanNot, IrUnaryPrimitiveImpl(expression.startOffset, expression.endOffset, IrOperator.EXCLEQEQ, context.irBuiltIns.booleanNot,
irIdentityEquals) irIdentityEquals)
else -> else ->
throw AssertionError("Unexpected identity operator $irOperator") throw AssertionError("Unexpected identity operator $irOperator")
+1 -1
View File
@@ -10,7 +10,7 @@ IrFile /identity.kt
IrExpressionBody IrExpressionBody
BLOCK type=<no-type> hasResult=false operator=null BLOCK type=<no-type> hasResult=false operator=null
RETURN type=<no-type> RETURN type=<no-type>
CALL .NOT type=kotlin.Boolean operator=EXCL CALL .NOT type=kotlin.Boolean operator=EXCLEQEQ
arg0: CALL .EQEQEQ type=kotlin.Boolean operator=EXCLEQEQ arg0: CALL .EQEQEQ type=kotlin.Boolean operator=EXCLEQEQ
arg0: GET_VAR a type=kotlin.Int operator=null arg0: GET_VAR a type=kotlin.Int operator=null
arg1: GET_VAR b type=kotlin.Int operator=null arg1: GET_VAR b type=kotlin.Int operator=null
+2 -2
View File
@@ -10,7 +10,7 @@ IrFile /in.kt
IrExpressionBody IrExpressionBody
BLOCK type=<no-type> hasResult=false operator=null BLOCK type=<no-type> hasResult=false operator=null
RETURN type=<no-type> RETURN type=<no-type>
CALL .NOT type=kotlin.Boolean operator=EXCL CALL .NOT type=kotlin.Boolean operator=NOT_IN
arg0: CALL .contains type=kotlin.Boolean operator=NOT_IN arg0: CALL .contains type=kotlin.Boolean operator=NOT_IN
$this: GET_VAR x type=kotlin.collections.Collection<kotlin.Any> operator=null $this: GET_VAR x type=kotlin.collections.Collection<kotlin.Any> operator=null
element: GET_VAR a type=kotlin.Any operator=null element: GET_VAR a type=kotlin.Any operator=null
@@ -25,7 +25,7 @@ IrFile /in.kt
IrExpressionBody IrExpressionBody
BLOCK type=<no-type> hasResult=false operator=null BLOCK type=<no-type> hasResult=false operator=null
RETURN type=<no-type> RETURN type=<no-type>
CALL .NOT type=kotlin.Boolean operator=EXCL CALL .NOT type=kotlin.Boolean operator=NOT_IN
arg0: CALL .contains type=kotlin.Boolean operator=NOT_IN arg0: CALL .contains type=kotlin.Boolean operator=NOT_IN
$this: GET_VAR x type=kotlin.collections.Collection<T> operator=null $this: GET_VAR x type=kotlin.collections.Collection<T> operator=null
element: GET_VAR a type=T operator=null element: GET_VAR a type=T operator=null