Create function/property from usage: added "member" when appropriate + changed order
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'iterator'" "true"
|
||||
// "Create member function 'iterator'" "true"
|
||||
class Foo<T>
|
||||
fun foo() {
|
||||
for (i: Int in Foo<caret><Int>()) { }
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'iterator'" "true"
|
||||
// "Create member function 'iterator'" "true"
|
||||
class Foo<T> {
|
||||
fun iterator(): Iterator<T> {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'iterator'" "true"
|
||||
// "Create member function 'iterator'" "true"
|
||||
class Foo<T>
|
||||
fun foo() {
|
||||
for (i in Foo<caret><Int>()) {
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'iterator'" "true"
|
||||
// "Create member function 'iterator'" "true"
|
||||
class Foo<T> {
|
||||
fun iterator(): Iterator<String> {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'next'" "true"
|
||||
// "Create member function 'next'" "true"
|
||||
class FooIterator<T> {
|
||||
fun hasNext(): Boolean { return false }
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'next'" "true"
|
||||
// "Create member function 'next'" "true"
|
||||
class FooIterator<T> {
|
||||
fun hasNext(): Boolean { return false }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user