[IR] Drop deprecated symbol.descriptor based declaration constructors
This commit is contained in:
@@ -51,31 +51,6 @@ class IrClassImpl(
|
|||||||
IrClass,
|
IrClass,
|
||||||
ClassCarrier {
|
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(
|
constructor(
|
||||||
startOffset: Int,
|
startOffset: Int,
|
||||||
endOffset: Int,
|
endOffset: Int,
|
||||||
|
|||||||
@@ -35,15 +35,6 @@ class IrFileImpl(
|
|||||||
IrElementBase(0, fileEntry.maxOffset),
|
IrElementBase(0, fileEntry.maxOffset),
|
||||||
IrFile {
|
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(
|
constructor(
|
||||||
fileEntry: SourceManager.FileEntry,
|
fileEntry: SourceManager.FileEntry,
|
||||||
packageFragmentDescriptor: PackageFragmentDescriptor
|
packageFragmentDescriptor: PackageFragmentDescriptor
|
||||||
|
|||||||
@@ -39,31 +39,6 @@ class IrFunctionImpl(
|
|||||||
IrSimpleFunction,
|
IrSimpleFunction,
|
||||||
FunctionCarrier {
|
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(
|
constructor(
|
||||||
startOffset: Int,
|
startOffset: Int,
|
||||||
endOffset: Int,
|
endOffset: Int,
|
||||||
|
|||||||
@@ -47,29 +47,6 @@ class IrPropertyImpl(
|
|||||||
IrProperty,
|
IrProperty,
|
||||||
PropertyCarrier {
|
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)
|
@Deprecated(message = "Don't use descriptor-based API for IrProperty", level = DeprecationLevel.WARNING)
|
||||||
constructor(
|
constructor(
|
||||||
startOffset: Int,
|
startOffset: Int,
|
||||||
|
|||||||
-22
@@ -46,28 +46,6 @@ class IrValueParameterImpl(
|
|||||||
IrValueParameter,
|
IrValueParameter,
|
||||||
ValueParameterCarrier {
|
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(
|
constructor(
|
||||||
startOffset: Int,
|
startOffset: Int,
|
||||||
endOffset: Int,
|
endOffset: Int,
|
||||||
|
|||||||
Reference in New Issue
Block a user