IR: IrConstructor.isPrimary

NB this is required for Kotlin/JS.
This commit is contained in:
Dmitry Petrov
2018-05-07 12:59:26 +03:00
parent a6057fb499
commit 729efaf912
158 changed files with 349 additions and 297 deletions
@@ -37,3 +37,4 @@ FILE fqName:<root> fileName:/coercionInLoop.kt
GET_VAR 'tmp0: Int' type=kotlin.Int origin=null
RETURN type=kotlin.Nothing from='box(): String'
CONST String type=kotlin.String value=OK
@@ -31,7 +31,7 @@ FILE fqName:<root> fileName:/integerCoercionToT.kt
TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?]
superClassifiers:
CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags:
CONSTRUCTOR visibility:public <> () returnType:CInt32VarX<T> flags:
CONSTRUCTOR visibility:public <> () returnType:CInt32VarX<T> flags:primary
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='CInt32VarX'
@@ -69,7 +69,7 @@ FILE fqName:<root> fileName:/integerCoercionToT.kt
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:IdType flags:
superClasses:
CLASS INTERFACE name:CPointed modality:ABSTRACT visibility:public flags:
CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:IdType flags:
CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:IdType flags:primary
VALUE_PARAMETER name:value index:0 type:kotlin.Int flags:
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -6,7 +6,7 @@ FILE fqName:<root> fileName:/typeAliasCtorForGenericClass.kt
TYPE_PARAMETER name:Q index:0 variance: upperBounds:[kotlin.Any?]
superClassifiers:
CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags:
CONSTRUCTOR visibility:public <> (q:Q) returnType:A<Q> flags:
CONSTRUCTOR visibility:public <> (q:Q) returnType:A<Q> flags:primary
VALUE_PARAMETER name:q index:0 type:Q flags:
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'