Fix new warnings in project code
This commit is contained in:
+2
-1
@@ -107,6 +107,7 @@ class TemporaryValsAnalyzer {
|
||||
valueAtStart.temporaryVal.isDirty = true
|
||||
is StoredValue.DirtyStore ->
|
||||
valueAtStart.temporaryVals.forEach { it.isDirty = true }
|
||||
StoredValue.Unknown -> {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,4 +215,4 @@ class TemporaryValsAnalyzer {
|
||||
else -> emptySet()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -147,6 +147,7 @@ class BuilderFactoryForDuplicateSignatureDiagnostics(
|
||||
is ConflictingDeclarationError.ConflictingInheritedJvmDeclarations -> {
|
||||
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.expressions.FirQualifiedAccess
|
||||
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.FirTypeAliasSymbol
|
||||
import org.jetbrains.kotlin.fir.types.isUnit
|
||||
|
||||
object FirStandaloneQualifierChecker : FirResolvedQualifierChecker() {
|
||||
@@ -32,6 +34,7 @@ object FirStandaloneQualifierChecker : FirResolvedQualifierChecker() {
|
||||
null -> {
|
||||
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 ")
|
||||
describeVerbose(symbol, fir)
|
||||
}
|
||||
is FirAnonymousFunction,
|
||||
is FirErrorFunction,
|
||||
is FirPropertyAccessor,
|
||||
is FirBackingField,
|
||||
is FirEnumEntry,
|
||||
is FirErrorProperty,
|
||||
is FirValueParameter -> {}
|
||||
}
|
||||
}
|
||||
else -> +symbol.describe()
|
||||
|
||||
@@ -77,6 +77,7 @@ fun FirClass.isThereLoopInSupertypes(session: FirSession): Boolean {
|
||||
is FirTypeAlias -> {
|
||||
fir.expandedConeType?.lookupTag?.toSymbol(session)?.let(::dfs)
|
||||
}
|
||||
else -> {}
|
||||
}
|
||||
|
||||
visitedSymbols.add(current)
|
||||
|
||||
+1
@@ -290,6 +290,7 @@ open class FirSupertypeResolverVisitor(
|
||||
if (classLikeDeclaration is FirTypeAlias) DiagnosticKind.RecursiveTypealiasExpansion else DiagnosticKind.LoopInSupertype
|
||||
)
|
||||
)
|
||||
SupertypeComputationStatus.NotComputed -> {}
|
||||
}
|
||||
|
||||
supertypeComputationSession.startComputingSupertypes(classLikeDeclaration)
|
||||
|
||||
+2
@@ -222,6 +222,7 @@ class FoldConstantLowering(
|
||||
return kind.valueOf(const).toUInt()
|
||||
is IrConstKind.Long ->
|
||||
return kind.valueOf(const).toULong()
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
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
|
||||
|
||||
+1
@@ -151,6 +151,7 @@ class ExportModelGenerator(val context: JsIrBackendContext) {
|
||||
when (val exportability = classExportability(klass)) {
|
||||
is Exportability.Prohibited -> error(exportability.reason)
|
||||
is Exportability.NotNeeded -> return null
|
||||
Exportability.Allowed -> {}
|
||||
}
|
||||
|
||||
val members = mutableListOf<ExportedDeclaration>()
|
||||
|
||||
@@ -368,13 +368,11 @@ fun FlexibleType.unCapture(): FlexibleType {
|
||||
val unCapturedLowerBound = when (val unCaptured = lowerBound.unCapture()) {
|
||||
is SimpleType -> unCaptured
|
||||
is FlexibleType -> unCaptured.lowerBound
|
||||
else -> lowerBound
|
||||
}
|
||||
|
||||
val unCapturedUpperBound = when (val unCaptured = upperBound.unCapture()) {
|
||||
is SimpleType -> unCaptured
|
||||
is FlexibleType -> unCaptured.upperBound
|
||||
else -> upperBound
|
||||
}
|
||||
|
||||
return FlexibleTypeImpl(unCapturedLowerBound, unCapturedUpperBound)
|
||||
|
||||
@@ -83,6 +83,7 @@ class WasmBinaryToIR(val b: MyByteReader) {
|
||||
functionTypes += type
|
||||
is WasmStructDeclaration ->
|
||||
gcTypes += type
|
||||
is WasmArrayDeclaration -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user