GreatSyntacticShift: 'namespace' -> 'package'

This commit is contained in:
Andrey Breslav
2011-12-25 15:51:59 +04:00
parent 9f4cd37dbb
commit f52eae71d0
141 changed files with 447 additions and 460 deletions
@@ -1,5 +1,5 @@
// "Add function body" "true"
namespace a {
package a {
fun <caret>foo() {
}
}
@@ -1,4 +1,4 @@
// "Add function body" "true"
namespace a {
package a {
fun <caret>foo()
}
@@ -1,5 +1,5 @@
// "Add primary constructor to A" "true"
namespace a
package a
class A() {
var i : Int = <caret>1
@@ -1,5 +1,5 @@
// "Add primary constructor to A" "true"
namespace a
package a
class A<caret>() {
var i : Int = 1
@@ -1,5 +1,5 @@
// "Add primary constructor to A" "true"
namespace a
package a
class A {
var i : Int = <caret>1
@@ -1,5 +1,5 @@
// "Add primary constructor to A" "true"
namespace a
package a
class A<caret> {
var i : Int = 1
@@ -1,5 +1,5 @@
// "Import Class" "true"
namespace a
package a
import a.b.M
@@ -7,6 +7,6 @@ fun test() {
val v = M
}
namespace b {
package b {
class M() { }
}
@@ -1,10 +1,10 @@
// "Import Class" "true"
namespace a
package a
fun test() {
val v = <caret>M
}
namespace b {
package b {
class M() { }
}
@@ -1,3 +1,3 @@
namespace TestData
package TestData
class TestSample() {}
@@ -1,9 +1,9 @@
// "Remove initializer from property" "true"
namespace a
package a
import java.util.Collections
namespace b {
package b {
import java.util.List
@@ -1,5 +1,5 @@
// "Remove initializer from property" "true"
namespace a
package a
class M {
trait A {
@@ -1,5 +1,5 @@
// "Remove initializer from property" "true"
namespace a
package a
class M {
trait A {
@@ -1,5 +1,5 @@
// "Remove initializer from property" "true"
namespace a
package a
import java.util.Collections
import java.util.List
@@ -1,9 +1,9 @@
// "Remove initializer from property" "true"
namespace a
package a
import java.util.Collections
namespace b {
package b {
import java.util.List
@@ -1,9 +1,9 @@
// "Remove initializer from property" "true"
namespace a
package a
import java.util.Collections
namespace b {
package b {
import java.util.List
@@ -1,5 +1,5 @@
// "Remove initializer from property" "true"
namespace a
package a
class M {
trait A {
@@ -1,5 +1,5 @@
// "Remove initializer from property" "true"
namespace a
package a
class M {
trait A {
@@ -1,5 +1,5 @@
// "Remove initializer from property" "true"
namespace a
package a
import java.util.Collections
@@ -1,9 +1,9 @@
// "Remove initializer from property" "true"
namespace a
package a
import java.util.Collections
namespace b {
package b {
class M {
trait A {
@@ -1,5 +1,5 @@
// "Add return type declaration" "true"
namespace a
package a
class A() {
protected fun <caret>foo() : Int = 1
@@ -1,5 +1,5 @@
// "Add return type declaration" "true"
namespace a
package a
class A() {
public fun <caret>foo() : String = "a"
@@ -1,5 +1,5 @@
// "Add return type declaration" "true"
namespace a
package a
import java.util.List
@@ -1,5 +1,5 @@
// "Add return type declaration" "false"
namespace a
package a
class A() {
internal protected fun <caret>foo() = 1
@@ -1,5 +1,5 @@
// "Add return type declaration" "true"
namespace a
package a
class A() {
protected fun <caret>foo() = 1
@@ -1,5 +1,5 @@
// "Add return type declaration" "false"
namespace a
package a
class A() {
public fun <caret>foo()
@@ -1,5 +1,5 @@
// "Add return type declaration" "true"
namespace a
package a
class A() {
public fun <caret>foo() = "a"
@@ -1,4 +1,4 @@
// "Add return type declaration" "true"
namespace a
package a
public val <caret>l = java.util.Collections.emptyList<Int>()