From c7916f74964246bee4d256c106b01c7e317e6c10 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 17 Mar 2015 19:54:11 +0100 Subject: default objects -> companion objects --- test/data/format/classWithCompanionObject.html | 46 ++++++++++++++++++++++++++ test/data/format/classWithCompanionObject.kt | 7 ++++ test/data/format/classWithCompanionObject.md | 26 +++++++++++++++ test/data/format/classWithDefaultObject.html | 46 -------------------------- test/data/format/classWithDefaultObject.kt | 7 ---- test/data/format/classWithDefaultObject.md | 26 --------------- test/data/format/companionObjectExtension.kt | 10 ++++++ test/data/format/companionObjectExtension.md | 23 +++++++++++++ test/data/format/defaultObjectExtension.kt | 10 ------ test/data/format/defaultObjectExtension.md | 23 ------------- 10 files changed, 112 insertions(+), 112 deletions(-) create mode 100644 test/data/format/classWithCompanionObject.html create mode 100644 test/data/format/classWithCompanionObject.kt create mode 100644 test/data/format/classWithCompanionObject.md delete mode 100644 test/data/format/classWithDefaultObject.html delete mode 100644 test/data/format/classWithDefaultObject.kt delete mode 100644 test/data/format/classWithDefaultObject.md create mode 100644 test/data/format/companionObjectExtension.kt create mode 100644 test/data/format/companionObjectExtension.md delete mode 100644 test/data/format/defaultObjectExtension.kt delete mode 100644 test/data/format/defaultObjectExtension.md (limited to 'test/data/format') diff --git a/test/data/format/classWithCompanionObject.html b/test/data/format/classWithCompanionObject.html new file mode 100644 index 00000000..be9247ea --- /dev/null +++ b/test/data/format/classWithCompanionObject.html @@ -0,0 +1,46 @@ + + +test / Klass + + +test / Klass
+
+

Klass

+class Klass
+
+
+

Constructors

+ + + + + + + +
+<init> +Klass()
+

Companion Object Properties

+ + + + + + + +
+x +val x: Int
+

Companion Object Functions

+ + + + + + + +
+foo +fun foo(): Unit
+ + diff --git a/test/data/format/classWithCompanionObject.kt b/test/data/format/classWithCompanionObject.kt new file mode 100644 index 00000000..fdbd915d --- /dev/null +++ b/test/data/format/classWithCompanionObject.kt @@ -0,0 +1,7 @@ +class Klass() { + companion object { + val x = 1 + + fun foo() {} + } +} diff --git a/test/data/format/classWithCompanionObject.md b/test/data/format/classWithCompanionObject.md new file mode 100644 index 00000000..9398c3d3 --- /dev/null +++ b/test/data/format/classWithCompanionObject.md @@ -0,0 +1,26 @@ +[test](test/index) / [Klass](test/-klass/index) + + +# Klass + +`class Klass` + + + +### Constructors + + +| [<init>](test/-klass/-init-) | `Klass()` | + + +### Companion Object Properties + + +| [x](test/-klass/x) | `val x: Int` | + + +### Companion Object Functions + + +| [foo](test/-klass/foo) | `fun foo(): Unit` | + diff --git a/test/data/format/classWithDefaultObject.html b/test/data/format/classWithDefaultObject.html deleted file mode 100644 index 663d8f64..00000000 --- a/test/data/format/classWithDefaultObject.html +++ /dev/null @@ -1,46 +0,0 @@ - - -test / Klass - - -test / Klass
-
-

Klass

-class Klass
-
-
-

Constructors

- - - - - - - -
-<init> -Klass()
-

Default Object Properties

- - - - - - - -
-x -val x: Int
-

Default Object Functions

- - - - - - - -
-foo -fun foo(): Unit
- - diff --git a/test/data/format/classWithDefaultObject.kt b/test/data/format/classWithDefaultObject.kt deleted file mode 100644 index 92e1a695..00000000 --- a/test/data/format/classWithDefaultObject.kt +++ /dev/null @@ -1,7 +0,0 @@ -class Klass() { - default object { - val x = 1 - - fun foo() {} - } -} diff --git a/test/data/format/classWithDefaultObject.md b/test/data/format/classWithDefaultObject.md deleted file mode 100644 index 645f4755..00000000 --- a/test/data/format/classWithDefaultObject.md +++ /dev/null @@ -1,26 +0,0 @@ -[test](test/index) / [Klass](test/-klass/index) - - -# Klass - -`class Klass` - - - -### Constructors - - -| [<init>](test/-klass/-init-) | `Klass()` | - - -### Default Object Properties - - -| [x](test/-klass/x) | `val x: Int` | - - -### Default Object Functions - - -| [foo](test/-klass/foo) | `fun foo(): Unit` | - diff --git a/test/data/format/companionObjectExtension.kt b/test/data/format/companionObjectExtension.kt new file mode 100644 index 00000000..f452de2c --- /dev/null +++ b/test/data/format/companionObjectExtension.kt @@ -0,0 +1,10 @@ +class Foo { + companion object Default { + } +} + + +/** + * The default object property. + */ +val Foo.Default.x: Int get() = 1 diff --git a/test/data/format/companionObjectExtension.md b/test/data/format/companionObjectExtension.md new file mode 100644 index 00000000..271da5b0 --- /dev/null +++ b/test/data/format/companionObjectExtension.md @@ -0,0 +1,23 @@ +[test](test/index) / [Foo](test/-foo/index) + + +# Foo + +`class Foo` + + + +### Constructors + + +| [<init>](test/-foo/-init-) | `Foo()` | + + +### Companion Object Extension Properties + + +| [x](test/x) | `val Foo.Default.x: Int` +The default object property. + + | + diff --git a/test/data/format/defaultObjectExtension.kt b/test/data/format/defaultObjectExtension.kt deleted file mode 100644 index 78df38c5..00000000 --- a/test/data/format/defaultObjectExtension.kt +++ /dev/null @@ -1,10 +0,0 @@ -class Foo { - default object Default { - } -} - - -/** - * The default object property. - */ -val Foo.Default.x: Int get() = 1 diff --git a/test/data/format/defaultObjectExtension.md b/test/data/format/defaultObjectExtension.md deleted file mode 100644 index 4ede33e8..00000000 --- a/test/data/format/defaultObjectExtension.md +++ /dev/null @@ -1,23 +0,0 @@ -[test](test/index) / [Foo](test/-foo/index) - - -# Foo - -`class Foo` - - - -### Constructors - - -| [<init>](test/-foo/-init-) | `Foo()` | - - -### Default Object Extension Properties - - -| [x](test/x) | `val Foo.Default.x: Int` -The default object property. - - | - -- cgit