[IR] Drop deprecated symbol.descriptor based declaration constructors
This commit is contained in:
@@ -51,31 +51,6 @@ class IrClassImpl(
|
||||
IrClass,
|
||||
ClassCarrier {
|
||||
|
||||
@Deprecated(
|
||||
"This constructor is left for native compilation purpose only. " +
|
||||
"It takes class attributes from symbol.descriptor " +
|
||||
"Please either provide class attributes or its descriptor explicitly"
|
||||
)
|
||||
constructor(
|
||||
startOffset: Int,
|
||||
endOffset: Int,
|
||||
origin: IrDeclarationOrigin,
|
||||
symbol: IrClassSymbol
|
||||
) : this(
|
||||
startOffset, endOffset, origin, symbol,
|
||||
name = symbol.descriptor.name,
|
||||
kind = symbol.descriptor.kind,
|
||||
visibility = symbol.descriptor.visibility,
|
||||
modality = symbol.descriptor.modality,
|
||||
isCompanion = symbol.descriptor.isCompanionObject,
|
||||
isInner = symbol.descriptor.isInner,
|
||||
isData = symbol.descriptor.isData,
|
||||
isExternal = symbol.descriptor.isExternal,
|
||||
isInline = symbol.descriptor.isInline,
|
||||
isExpect = symbol.descriptor.isExpect,
|
||||
isFun = symbol.descriptor.isFun
|
||||
)
|
||||
|
||||
constructor(
|
||||
startOffset: Int,
|
||||
endOffset: Int,
|
||||
|
||||
@@ -35,15 +35,6 @@ class IrFileImpl(
|
||||
IrElementBase(0, fileEntry.maxOffset),
|
||||
IrFile {
|
||||
|
||||
@Deprecated(
|
||||
"This constructor is left for native compilation purpose only. It uses symbol.descriptor attributes " +
|
||||
"Please provide FqName explicitly"
|
||||
)
|
||||
constructor(
|
||||
fileEntry: SourceManager.FileEntry,
|
||||
symbol: IrFileSymbol
|
||||
) : this(fileEntry, symbol, symbol.descriptor.fqName)
|
||||
|
||||
constructor(
|
||||
fileEntry: SourceManager.FileEntry,
|
||||
packageFragmentDescriptor: PackageFragmentDescriptor
|
||||
|
||||
@@ -39,31 +39,6 @@ class IrFunctionImpl(
|
||||
IrSimpleFunction,
|
||||
FunctionCarrier {
|
||||
|
||||
@Deprecated(
|
||||
"This constructor is left for native compilation purpose only. " +
|
||||
"It takes function attributes from symbol.descriptor " +
|
||||
"Please either provide function attributes or its descriptor explicitly"
|
||||
)
|
||||
constructor(
|
||||
startOffset: Int,
|
||||
endOffset: Int,
|
||||
origin: IrDeclarationOrigin,
|
||||
symbol: IrSimpleFunctionSymbol,
|
||||
returnType: IrType
|
||||
) : this(
|
||||
startOffset, endOffset, origin, symbol,
|
||||
name = symbol.descriptor.name,
|
||||
visibility = symbol.descriptor.visibility,
|
||||
modality = symbol.descriptor.modality,
|
||||
returnType = returnType,
|
||||
isInline = symbol.descriptor.isInline,
|
||||
isExternal = symbol.descriptor.isExternal,
|
||||
isTailrec = symbol.descriptor.isTailrec,
|
||||
isSuspend = symbol.descriptor.isSuspend,
|
||||
isOperator = symbol.descriptor.isOperator,
|
||||
isExpect = symbol.descriptor.isExpect
|
||||
)
|
||||
|
||||
constructor(
|
||||
startOffset: Int,
|
||||
endOffset: Int,
|
||||
|
||||
@@ -47,29 +47,6 @@ class IrPropertyImpl(
|
||||
IrProperty,
|
||||
PropertyCarrier {
|
||||
|
||||
@Deprecated(
|
||||
"This constructor is left for native compilation purpose only. " +
|
||||
"It takes property attributes from symbol.descriptor " +
|
||||
"Please either provide property attributes or its descriptor explicitly"
|
||||
)
|
||||
constructor(
|
||||
startOffset: Int,
|
||||
endOffset: Int,
|
||||
origin: IrDeclarationOrigin,
|
||||
symbol: IrPropertySymbol,
|
||||
name: Name
|
||||
) : this(
|
||||
startOffset, endOffset, origin, symbol, name,
|
||||
visibility = symbol.descriptor.visibility,
|
||||
modality = symbol.descriptor.modality,
|
||||
isVar = symbol.descriptor.isVar,
|
||||
isConst = symbol.descriptor.isConst,
|
||||
isLateinit = symbol.descriptor.isLateInit,
|
||||
isDelegated = symbol.descriptor.isDelegated,
|
||||
isExternal = symbol.descriptor.isExternal,
|
||||
isExpect = symbol.descriptor.isExpect
|
||||
)
|
||||
|
||||
@Deprecated(message = "Don't use descriptor-based API for IrProperty", level = DeprecationLevel.WARNING)
|
||||
constructor(
|
||||
startOffset: Int,
|
||||
|
||||
-22
@@ -46,28 +46,6 @@ class IrValueParameterImpl(
|
||||
IrValueParameter,
|
||||
ValueParameterCarrier {
|
||||
|
||||
@Deprecated(
|
||||
"This constructor is left for native compilation purpose only. " +
|
||||
"It takes value parameter attributes from symbol.descriptor " +
|
||||
"Please either provide parameter attributes or its descriptor explicitly"
|
||||
)
|
||||
constructor(
|
||||
startOffset: Int,
|
||||
endOffset: Int,
|
||||
origin: IrDeclarationOrigin,
|
||||
symbol: IrValueParameterSymbol,
|
||||
type: IrType,
|
||||
varargElementType: IrType?
|
||||
) : this(
|
||||
startOffset, endOffset, origin, symbol,
|
||||
name = symbol.descriptor.name,
|
||||
index = symbol.descriptor.safeAs<ValueParameterDescriptor>()?.index ?: -1,
|
||||
type = type,
|
||||
varargElementType = varargElementType,
|
||||
isCrossinline = symbol.descriptor.safeAs<ValueParameterDescriptor>()?.isCrossinline == true,
|
||||
isNoinline = symbol.descriptor.safeAs<ValueParameterDescriptor>()?.isNoinline == true
|
||||
)
|
||||
|
||||
constructor(
|
||||
startOffset: Int,
|
||||
endOffset: Int,
|
||||
|
||||
Reference in New Issue
Block a user