DeprecatedSymbolUsageFix: initial implementation
This commit is contained in:
@@ -36,7 +36,7 @@ import java.io.PrintWriter
|
||||
import java.io.StringWriter
|
||||
|
||||
public fun JetPsiFactory(project: Project?): JetPsiFactory = JetPsiFactory(project!!)
|
||||
public fun JetPsiFactory(contextElement: JetElement): JetPsiFactory = JetPsiFactory(contextElement.getProject())
|
||||
public fun JetPsiFactory(elementForProject: JetElement): JetPsiFactory = JetPsiFactory(elementForProject.getProject())
|
||||
|
||||
public var JetFile.doNotAnalyze: String? by UserDataProperty(Key.create("DO_NOT_ANALYZE"))
|
||||
public var JetFile.analysisContext: PsiElement? by UserDataProperty(Key.create("ANALYSIS_CONTEXT"))
|
||||
|
||||
@@ -168,9 +168,11 @@ private fun processPattern(pattern: String, args: Array<out Any>): PatternData {
|
||||
}
|
||||
}.toString()
|
||||
|
||||
val max = ranges.keySet().max()!!
|
||||
for (i in 0..max) {
|
||||
check(ranges.contains(i), "no '$$i' placeholder")
|
||||
if (!ranges.isEmpty()) {
|
||||
val max = ranges.keySet().max()!!
|
||||
for (i in 0..max) {
|
||||
check(ranges.contains(i), "no '$$i' placeholder")
|
||||
}
|
||||
}
|
||||
|
||||
if (args.size() != ranges.size()) {
|
||||
|
||||
@@ -1162,6 +1162,14 @@ public interface Range</*0*/ T : kotlin.Comparable<T>> {
|
||||
public open fun isEmpty(): kotlin.Boolean
|
||||
}
|
||||
|
||||
public final annotation class ReplaceWith : kotlin.Annotation {
|
||||
/*primary*/ public constructor ReplaceWith(/*0*/ expression: kotlin.String, /*1*/ vararg imports: kotlin.String /*kotlin.Array<out kotlin.String>*/)
|
||||
internal final val expression: kotlin.String
|
||||
internal final fun <get-expression>(): kotlin.String
|
||||
internal final val imports: kotlin.Array<out kotlin.String>
|
||||
internal final fun <get-imports>(): kotlin.Array<out kotlin.String>
|
||||
}
|
||||
|
||||
public interface Set</*0*/ out E> : kotlin.Collection<E> {
|
||||
public abstract override /*1*/ fun contains(/*0*/ o: kotlin.Any?): kotlin.Boolean
|
||||
public abstract override /*1*/ fun containsAll(/*0*/ c: kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
@@ -1336,7 +1344,9 @@ public final annotation class data : kotlin.Annotation {
|
||||
}
|
||||
|
||||
public final annotation class deprecated : kotlin.Annotation {
|
||||
/*primary*/ public constructor deprecated(/*0*/ value: kotlin.String)
|
||||
/*primary*/ public constructor deprecated(/*0*/ value: kotlin.String, /*1*/ replaceWith: kotlin.ReplaceWith = ...)
|
||||
internal final val replaceWith: kotlin.ReplaceWith
|
||||
internal final fun <get-replaceWith>(): kotlin.ReplaceWith
|
||||
internal final val value: kotlin.String
|
||||
internal final fun <get-value>(): kotlin.String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user