Workaround package part hash codes in tests on JetPositionManager

This commit is contained in:
Alexander Udalov
2014-09-24 12:48:10 +04:00
parent b5832d2656
commit 49e5b950ce
20 changed files with 27 additions and 29 deletions
@@ -1,3 +1,3 @@
fun foo() {
"" // _DefaultPackage-_DefaultPackage-
"" // _DefaultPackage\$_DefaultPackage\$.+
}
@@ -1,7 +1,7 @@
class A {
fun foo() {
{
"" // A$foo$1
"" // A\$foo\$1
}()
}
}
@@ -2,6 +2,6 @@ package insertInBlock
fun foo() {
val lambda = {
val a = 1 // insertInBlock/InsertInBlockPackage$foo$lambda$1
val a = 1 // insertInBlock/InsertInBlockPackage\$anonymousNamedFunction\$.+\$foo\$lambda\$1
}()
}
@@ -1,7 +1,7 @@
class A {
class object {
fun foo() {
"" // A$object
"" // A\$object
}
}
}
@@ -4,5 +4,5 @@ class A {
}
fun A.foo() {
"" // a/APackage-extensionFunction-
"" // a/APackage\$extensionFunction\$.+
}
@@ -2,7 +2,7 @@ class A {
fun foo() {
{
fun innerFoo() {
"" // A$foo$1$1
"" // A\$foo\$1\$1
}
innerFoo()
}()
@@ -2,7 +2,7 @@ class A {
fun foo() {
val a = {
fun innerFoo() {
val b = {} // A$foo$a$1$1
val b = {} // A\$foo\$a\$1\$1
}
innerFoo()
}()
@@ -1,7 +1,7 @@
class A {
class B {
fun foo() {
"" // A$B
"" // A\$B
}
}
}
@@ -2,7 +2,7 @@ package test
fun foo(): String {
fun bar(): String {
return "" // test/TestPackage$foo$1
return "" // test/TestPackage\$localFunction\$.+\$foo\$1
}
return bar()
}
@@ -1,5 +1,5 @@
package test
fun foo() {
"" // test/TestPackage-a-
"" // test/TestPackage\$a\$.+
}
@@ -1,5 +1,5 @@
package test
fun bar() {
foo(); // test/TestPackage-b-
foo(); // test/TestPackage\$b\$.+
}
@@ -1,5 +1,5 @@
package test
fun foo() {
"" // test/TestPackage-a-
"" // test/TestPackage\$a\$.+
}
@@ -1,5 +1,5 @@
package test
fun bar() {
"" // test/TestPackage-a-
"" // test/TestPackage\$a\$.+
}
@@ -1,5 +1,5 @@
package test
fun baz() {
"" // test/TestPackage-a-
"" // test/TestPackage\$a\$.+
}
@@ -1,5 +1,5 @@
package test
fun quux() {
"" // test/TestPackage-a-
"" // test/TestPackage\$a\$.+
}
@@ -2,7 +2,7 @@ class A {
fun foo() {
object {
fun bar() {
"" // A$foo$1
"" // A\$foo\$1
}
}
}
@@ -1,5 +1,5 @@
package test
fun foo() {
"" // test/TestPackage-package
"" // test/TestPackage\$package\$.+
}
@@ -1,3 +1,3 @@
package prop
val foo: Int = 5 // prop/PropPackage-topLevelPropertyInitializer
val foo: Int = 5 // prop/PropPackage\$topLevelPropertyInitializer\$.+
@@ -1,5 +1,5 @@
trait A {
fun foo() {
"" // A$$TImpl
"" // A\$\$TImpl
}
}