Fix new warnings in project code
This commit is contained in:
+2
-1
@@ -107,6 +107,7 @@ class TemporaryValsAnalyzer {
|
|||||||
valueAtStart.temporaryVal.isDirty = true
|
valueAtStart.temporaryVal.isDirty = true
|
||||||
is StoredValue.DirtyStore ->
|
is StoredValue.DirtyStore ->
|
||||||
valueAtStart.temporaryVals.forEach { it.isDirty = true }
|
valueAtStart.temporaryVals.forEach { it.isDirty = true }
|
||||||
|
StoredValue.Unknown -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -214,4 +215,4 @@ class TemporaryValsAnalyzer {
|
|||||||
else -> emptySet()
|
else -> emptySet()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -147,6 +147,7 @@ class BuilderFactoryForDuplicateSignatureDiagnostics(
|
|||||||
is ConflictingDeclarationError.ConflictingInheritedJvmDeclarations -> {
|
is ConflictingDeclarationError.ConflictingInheritedJvmDeclarations -> {
|
||||||
diagnostics.report(ErrorsJvm.CONFLICTING_INHERITED_JVM_DECLARATIONS.on(diagnostic.element, diagnostic.data))
|
diagnostics.report(ErrorsJvm.CONFLICTING_INHERITED_JVM_DECLARATIONS.on(diagnostic.element, diagnostic.data))
|
||||||
}
|
}
|
||||||
|
null -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -12,7 +12,9 @@ import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors
|
|||||||
import org.jetbrains.kotlin.fir.analysis.diagnostics.reportOn
|
import org.jetbrains.kotlin.fir.analysis.diagnostics.reportOn
|
||||||
import org.jetbrains.kotlin.fir.expressions.FirQualifiedAccess
|
import org.jetbrains.kotlin.fir.expressions.FirQualifiedAccess
|
||||||
import org.jetbrains.kotlin.fir.expressions.FirResolvedQualifier
|
import org.jetbrains.kotlin.fir.expressions.FirResolvedQualifier
|
||||||
|
import org.jetbrains.kotlin.fir.symbols.impl.FirAnonymousObjectSymbol
|
||||||
import org.jetbrains.kotlin.fir.symbols.impl.FirRegularClassSymbol
|
import org.jetbrains.kotlin.fir.symbols.impl.FirRegularClassSymbol
|
||||||
|
import org.jetbrains.kotlin.fir.symbols.impl.FirTypeAliasSymbol
|
||||||
import org.jetbrains.kotlin.fir.types.isUnit
|
import org.jetbrains.kotlin.fir.types.isUnit
|
||||||
|
|
||||||
object FirStandaloneQualifierChecker : FirResolvedQualifierChecker() {
|
object FirStandaloneQualifierChecker : FirResolvedQualifierChecker() {
|
||||||
@@ -32,6 +34,7 @@ object FirStandaloneQualifierChecker : FirResolvedQualifierChecker() {
|
|||||||
null -> {
|
null -> {
|
||||||
reporter.reportOn(expression.source, FirErrors.EXPRESSION_EXPECTED_PACKAGE_FOUND, context)
|
reporter.reportOn(expression.source, FirErrors.EXPRESSION_EXPECTED_PACKAGE_FOUND, context)
|
||||||
}
|
}
|
||||||
|
else -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1198,6 +1198,13 @@ class HtmlFirDump internal constructor(private var linkResolver: FirLinkResolver
|
|||||||
keyword("var ")
|
keyword("var ")
|
||||||
describeVerbose(symbol, fir)
|
describeVerbose(symbol, fir)
|
||||||
}
|
}
|
||||||
|
is FirAnonymousFunction,
|
||||||
|
is FirErrorFunction,
|
||||||
|
is FirPropertyAccessor,
|
||||||
|
is FirBackingField,
|
||||||
|
is FirEnumEntry,
|
||||||
|
is FirErrorProperty,
|
||||||
|
is FirValueParameter -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else -> +symbol.describe()
|
else -> +symbol.describe()
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ fun FirClass.isThereLoopInSupertypes(session: FirSession): Boolean {
|
|||||||
is FirTypeAlias -> {
|
is FirTypeAlias -> {
|
||||||
fir.expandedConeType?.lookupTag?.toSymbol(session)?.let(::dfs)
|
fir.expandedConeType?.lookupTag?.toSymbol(session)?.let(::dfs)
|
||||||
}
|
}
|
||||||
|
else -> {}
|
||||||
}
|
}
|
||||||
|
|
||||||
visitedSymbols.add(current)
|
visitedSymbols.add(current)
|
||||||
|
|||||||
+1
@@ -290,6 +290,7 @@ open class FirSupertypeResolverVisitor(
|
|||||||
if (classLikeDeclaration is FirTypeAlias) DiagnosticKind.RecursiveTypealiasExpansion else DiagnosticKind.LoopInSupertype
|
if (classLikeDeclaration is FirTypeAlias) DiagnosticKind.RecursiveTypealiasExpansion else DiagnosticKind.LoopInSupertype
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
SupertypeComputationStatus.NotComputed -> {}
|
||||||
}
|
}
|
||||||
|
|
||||||
supertypeComputationSession.startComputingSupertypes(classLikeDeclaration)
|
supertypeComputationSession.startComputingSupertypes(classLikeDeclaration)
|
||||||
|
|||||||
+2
@@ -222,6 +222,7 @@ class FoldConstantLowering(
|
|||||||
return kind.valueOf(const).toUInt()
|
return kind.valueOf(const).toUInt()
|
||||||
is IrConstKind.Long ->
|
is IrConstKind.Long ->
|
||||||
return kind.valueOf(const).toULong()
|
return kind.valueOf(const).toULong()
|
||||||
|
else -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return const.value
|
return const.value
|
||||||
@@ -246,6 +247,7 @@ class FoldConstantLowering(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ open class MutableController(val context: JsIrBackendContext, val lowerings: Lis
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
is ModuleLowering -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
declaration.loweredUpTo = i
|
declaration.loweredUpTo = i
|
||||||
|
|||||||
+1
@@ -151,6 +151,7 @@ class ExportModelGenerator(val context: JsIrBackendContext) {
|
|||||||
when (val exportability = classExportability(klass)) {
|
when (val exportability = classExportability(klass)) {
|
||||||
is Exportability.Prohibited -> error(exportability.reason)
|
is Exportability.Prohibited -> error(exportability.reason)
|
||||||
is Exportability.NotNeeded -> return null
|
is Exportability.NotNeeded -> return null
|
||||||
|
Exportability.Allowed -> {}
|
||||||
}
|
}
|
||||||
|
|
||||||
val members = mutableListOf<ExportedDeclaration>()
|
val members = mutableListOf<ExportedDeclaration>()
|
||||||
|
|||||||
@@ -368,13 +368,11 @@ fun FlexibleType.unCapture(): FlexibleType {
|
|||||||
val unCapturedLowerBound = when (val unCaptured = lowerBound.unCapture()) {
|
val unCapturedLowerBound = when (val unCaptured = lowerBound.unCapture()) {
|
||||||
is SimpleType -> unCaptured
|
is SimpleType -> unCaptured
|
||||||
is FlexibleType -> unCaptured.lowerBound
|
is FlexibleType -> unCaptured.lowerBound
|
||||||
else -> lowerBound
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val unCapturedUpperBound = when (val unCaptured = upperBound.unCapture()) {
|
val unCapturedUpperBound = when (val unCaptured = upperBound.unCapture()) {
|
||||||
is SimpleType -> unCaptured
|
is SimpleType -> unCaptured
|
||||||
is FlexibleType -> unCaptured.upperBound
|
is FlexibleType -> unCaptured.upperBound
|
||||||
else -> upperBound
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FlexibleTypeImpl(unCapturedLowerBound, unCapturedUpperBound)
|
return FlexibleTypeImpl(unCapturedLowerBound, unCapturedUpperBound)
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ class WasmBinaryToIR(val b: MyByteReader) {
|
|||||||
functionTypes += type
|
functionTypes += type
|
||||||
is WasmStructDeclaration ->
|
is WasmStructDeclaration ->
|
||||||
gcTypes += type
|
gcTypes += type
|
||||||
|
is WasmArrayDeclaration -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user