FIR: Switch to | in fir resolved type renderer
Otherwise it clashed with qualified names
This commit is contained in:
committed by
Mikhail Glukhikh
parent
4fb321fa00
commit
6cfe935c2a
@@ -458,10 +458,10 @@ class FirRenderer(builder: StringBuilder) : FirVisitorVoid() {
|
||||
|
||||
override fun visitResolvedType(resolvedType: FirResolvedType) {
|
||||
resolvedType.annotations.renderAnnotations()
|
||||
print("R/")
|
||||
print("R|")
|
||||
val coneType = resolvedType.type
|
||||
print(coneType.asString())
|
||||
print("/")
|
||||
print("|")
|
||||
visitTypeWithNullability(resolvedType)
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,6 @@ FILE: simpleClass.kt
|
||||
|
||||
public? final? property fau(var): Double
|
||||
public? get(): Double
|
||||
public? set(value: Double): R/kotlin/Unit/
|
||||
public? set(value: Double): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
FILE: F.kt
|
||||
public? open class A() {
|
||||
}
|
||||
public? final class B() : R/A/ {
|
||||
public? final class B() : R|A| {
|
||||
}
|
||||
|
||||
+3
-3
@@ -4,9 +4,9 @@ FILE: NestedOfAliasedType.kt
|
||||
}
|
||||
|
||||
}
|
||||
public? final typealias TA = R/A/
|
||||
public? final class B() : R/TA = A/ {
|
||||
public? final class NestedInB() : R/A.Nested/ {
|
||||
public? final typealias TA = R|A|
|
||||
public? final class B() : R|TA = A| {
|
||||
public? final class NestedInB() : R|A.Nested| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
FILE: NestedSuperType.kt
|
||||
public? abstract class My() {
|
||||
public? abstract class NestedOne() : R/p/My/ {
|
||||
public? abstract class NestedTwo() : R/p/My.NestedOne/ {
|
||||
public? abstract class NestedOne() : R|p/My| {
|
||||
public? abstract class NestedTwo() : R|p/My.NestedOne| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public? final class Your() : R/p/My/ {
|
||||
public? final class NestedThree() : R/p/My.NestedOne/ {
|
||||
public? final class Your() : R|p/My| {
|
||||
public? final class NestedThree() : R|p/My.NestedOne| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
FILE: TwoDeclarationsInSameFile.kt
|
||||
public? open class A() {
|
||||
}
|
||||
public? final class B() : R/p/A/ {
|
||||
public? final class B() : R|p/A| {
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
FILE: lists.kt
|
||||
public? abstract class MyStringList() : R/kotlin/collections/List<kotlin/String>/ {
|
||||
public? abstract class MyStringList() : R|kotlin/collections/List<kotlin/String>| {
|
||||
}
|
||||
public? abstract class MyMutableStringList() : R/kotlin/collections/MutableList<kotlin/String>/ {
|
||||
public? abstract class MyMutableStringList() : R|kotlin/collections/MutableList<kotlin/String>| {
|
||||
}
|
||||
public? final? function convert R/kotlin/collections/List<kotlin/String>/.(): R/MyStringList/ {
|
||||
public? final? function convert R|kotlin/collections/List<kotlin/String>|.(): R|MyStringList| {
|
||||
STUB
|
||||
}
|
||||
public? final? function ret(l: R/kotlin/collections/MutableList<kotlin/String>/): R/MyMutableStringList/ {
|
||||
public? final? function ret(l: R|kotlin/collections/MutableList<kotlin/String>|): R|MyMutableStringList| {
|
||||
STUB
|
||||
}
|
||||
|
||||
+8
-8
@@ -1,27 +1,27 @@
|
||||
FILE: enum.kt
|
||||
public? abstract interface Some() {
|
||||
}
|
||||
public? final object O1() : R/Some/ {
|
||||
public? final object O1() : R|Some| {
|
||||
}
|
||||
public? final object O2() : R/Some/ {
|
||||
public? final object O2() : R|Some| {
|
||||
}
|
||||
public? final enum class SomeEnum() {
|
||||
public? constructor(x: R/Some/)
|
||||
public? constructor(x: R|Some|)
|
||||
|
||||
public? final enum entry FIRST() : R/SomeEnum/ {
|
||||
public? open? override function check(y: R/Some/): R/kotlin/Boolean/ {
|
||||
public? final enum entry FIRST() : R|SomeEnum| {
|
||||
public? open? override function check(y: R|Some|): R|kotlin/Boolean| {
|
||||
STUB
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public? final enum entry SECOND() : R/SomeEnum/ {
|
||||
public? open? override function check(y: R/Some/): R/kotlin/Boolean/ {
|
||||
public? final enum entry SECOND() : R|SomeEnum| {
|
||||
public? open? override function check(y: R|Some|): R|kotlin/Boolean| {
|
||||
STUB
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public? abstract function check(y: R/Some/): R/kotlin/Boolean/
|
||||
public? abstract function check(y: R|Some|): R|kotlin/Boolean|
|
||||
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
FILE: functionTypes.kt
|
||||
<T> public? final? function simpleRun(f: ( (R/T/) -> R/kotlin/Unit/ )): R/kotlin/Unit/ {
|
||||
<T> public? final? function simpleRun(f: R|(T) -> kotlin/Unit|): R|kotlin/Unit| {
|
||||
STUB
|
||||
}
|
||||
<T, R> public? final? function simpleMap R/kotlin/collections/List<T>/.(f: ( (R/T/) -> R/R/ )): R/R/ {
|
||||
<T, R> public? final? function simpleMap R|kotlin/collections/List<T>|.(f: R|(T) -> R|): R|R| {
|
||||
}
|
||||
<T> public? final? function simpleWith(t: R/T/, f: ( R/T/.() -> R/kotlin/Unit/ )): R/kotlin/Unit/ {
|
||||
<T> public? final? function simpleWith(t: R|T|, f: R|T.() -> kotlin/Unit|): R|kotlin/Unit| {
|
||||
STUB
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
FILE: genericFunctions.kt
|
||||
public? abstract interface Any() {
|
||||
}
|
||||
<reified T : Any> public? final? inline function safeAs R/Any/.(): R/T/ {
|
||||
<reified T : Any> public? final? inline function safeAs R|Any|.(): R|T| {
|
||||
STUB
|
||||
}
|
||||
public? abstract class Summator() {
|
||||
<T> public? abstract function plus(first: R/T/, second: R/T/): R/T/
|
||||
<T> public? abstract function plus(first: R|T|, second: R|T|): R|T|
|
||||
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
FILE: NestedSuperType.kt
|
||||
public? final class A() : R/b/B/ {
|
||||
public? final class NestedInA1() : R/b/B.NestedInB/ {
|
||||
public? final class A() : R|b/B| {
|
||||
public? final class NestedInA1() : R|b/B.NestedInB| {
|
||||
}
|
||||
|
||||
public? final class NestedInA2() : R/c/C.NestedInC/ {
|
||||
public? final class NestedInA2() : R|c/C.NestedInC| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FILE: TypeAliasExpansion.kt
|
||||
public? final class MyClass() : R/b/TA = b/A/ {
|
||||
public? final class MyClass() : R|b/TA = b/A| {
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
FILE: sealedStarImport.kt
|
||||
public? abstract class Factory() {
|
||||
public? abstract function createTest(): R/error: Symbol not found/
|
||||
public? abstract function createTest(): R|error: Symbol not found|
|
||||
|
||||
public? abstract function createObj(): R/test/Test.O/
|
||||
public? abstract function createObj(): R|test/Test.O|
|
||||
|
||||
public? abstract function createExtra(): R/test/Test.Extra/
|
||||
public? abstract function createExtra(): R|test/Test.Extra|
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FILE: simpleAliasedImport.kt
|
||||
public? final class YourClass() : R/b/MyClass/ {
|
||||
public? final class YourClass() : R|b/MyClass| {
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FILE: simpleImport.kt
|
||||
public? final class YourClass() : R/b/MyClass/ {
|
||||
public? final class YourClass() : R|b/MyClass| {
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FILE: simpleImportNested.kt
|
||||
public? final class YourClass() : R/a/MyClass.MyNested/ {
|
||||
public? final class YourClass() : R|a/MyClass.MyNested| {
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FILE: simpleImportOuter.kt
|
||||
public? final class My() : R/a/Outer.Nested/ {
|
||||
public? final class My() : R|a/Outer.Nested| {
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
FILE: simpleStarImport.kt
|
||||
public? final? function foo(arg: R/b/d/Other/): R/b/d/Another/
|
||||
public? final? function foo(arg: R|b/d/Other|): R|b/d/Another|
|
||||
|
||||
+13
-13
@@ -1,27 +1,27 @@
|
||||
FILE: simpleClass.kt
|
||||
public? abstract interface SomeInterface() {
|
||||
public? final? function foo(x: R/kotlin/Int/, y: R/kotlin/String/): R/kotlin/String/
|
||||
public? final? function foo(x: R|kotlin/Int|, y: R|kotlin/String|): R|kotlin/String|
|
||||
|
||||
public? final? property bar(val): R/kotlin/Boolean/
|
||||
public? get(): R/kotlin/Boolean/
|
||||
public? final? property bar(val): R|kotlin/Boolean|
|
||||
public? get(): R|kotlin/Boolean|
|
||||
|
||||
}
|
||||
public? final class SomeClass() : R/SomeInterface/ {
|
||||
private final? property baz(val): R/error: Not supported: FirImplicitTypeImpl/ = STUB
|
||||
public? get(): R/error: Not supported: FirImplicitTypeImpl/
|
||||
public? final class SomeClass() : R|SomeInterface| {
|
||||
private final? property baz(val): R|error: Not supported: FirImplicitTypeImpl| = STUB
|
||||
public? get(): R|error: Not supported: FirImplicitTypeImpl|
|
||||
|
||||
public? open? override function foo(x: R/kotlin/Int/, y: R/kotlin/String/): R/kotlin/String/ {
|
||||
public? open? override function foo(x: R|kotlin/Int|, y: R|kotlin/String|): R|kotlin/String| {
|
||||
}
|
||||
|
||||
public? open? override property bar(var): R/kotlin/Boolean/
|
||||
public? get(): R/error: Not supported: FirImplicitTypeImpl/ {
|
||||
public? open? override property bar(var): R|kotlin/Boolean|
|
||||
public? get(): R|error: Not supported: FirImplicitTypeImpl| {
|
||||
STUB
|
||||
}
|
||||
public? set(value: R/kotlin/Boolean/): R/error: Not supported: FirImplicitTypeImpl/ {
|
||||
public? set(value: R|kotlin/Boolean|): R|error: Not supported: FirImplicitTypeImpl| {
|
||||
}
|
||||
|
||||
public? final? property fau(var): R/kotlin/Double/
|
||||
public? get(): R/kotlin/Double/
|
||||
public? set(value: R/kotlin/Double/): R/kotlin/Unit/
|
||||
public? final? property fau(var): R|kotlin/Double|
|
||||
public? get(): R|kotlin/Double|
|
||||
public? set(value: R|kotlin/Double|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
FILE: simpleTypeAlias.kt
|
||||
public? abstract interface B() {
|
||||
}
|
||||
public? final typealias C = R/B/
|
||||
public? final class D() : R/C = B/ {
|
||||
public? final typealias C = R|B|
|
||||
public? final class D() : R|C = B| {
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
FILE: typeAliasWithGeneric.kt
|
||||
public? open class A() {
|
||||
}
|
||||
<S, T : R/A/> public? abstract interface B() {
|
||||
<S, T : R|A|> public? abstract interface B() {
|
||||
}
|
||||
public? final class D() : R/C<A> = B<T, A>/ {
|
||||
public? final class D() : R|C<A> = B<T, A>| {
|
||||
}
|
||||
<T> public? final typealias C = R/B<T, A>/
|
||||
<T> public? final typealias C = R|B<T, A>|
|
||||
|
||||
+9
-9
@@ -1,22 +1,22 @@
|
||||
FILE: typeParameterVsNested.kt
|
||||
public? abstract interface Some() {
|
||||
}
|
||||
<T : R/test/Some/> public? abstract class My() {
|
||||
<T : R|test/Some|> public? abstract class My() {
|
||||
public? final class T(inner) {
|
||||
}
|
||||
|
||||
public? abstract property x(val): R/T/
|
||||
public? get(): R/T/
|
||||
public? abstract property x(val): R|T|
|
||||
public? get(): R|T|
|
||||
|
||||
public? abstract function foo(arg: R/T/): R/error: Not supported: FirImplicitTypeImpl/
|
||||
public? abstract function foo(arg: R|T|): R|error: Not supported: FirImplicitTypeImpl|
|
||||
|
||||
public? abstract property y(val): R/test/My.T/
|
||||
public? get(): R/test/My.T/
|
||||
public? abstract property y(val): R|test/My.T|
|
||||
public? get(): R|test/My.T|
|
||||
|
||||
public? abstract property z(val): R/test/My.T/
|
||||
public? get(): R/test/My.T/
|
||||
public? abstract property z(val): R|test/My.T|
|
||||
public? get(): R|test/My.T|
|
||||
|
||||
public? final class Some() : R/test/My.T/ {
|
||||
public? final class Some() : R|test/My.T| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user