A bigger code example for codestyle provider
This commit is contained in:
+19
-11
@@ -57,17 +57,25 @@ public class JetLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSetti
|
|||||||
"}";
|
"}";
|
||||||
default:
|
default:
|
||||||
return
|
return
|
||||||
"open class Some {\n" +
|
"open class Some {\n"+
|
||||||
" private val f = {(a: Int)->a*2}\n" +
|
" private val f: (Int)->Int = { (a: Int) -> a * 2 }\n"+
|
||||||
" fun foo() : Int {\n" +
|
" fun foo(): Int {\n"+
|
||||||
" val test : Int = 12\n" +
|
" val test: Int = 12\n"+
|
||||||
" return test\n" +
|
" for (i in 10..42) {\n"+
|
||||||
" }\n" +
|
" println (when {\n"+
|
||||||
" private fun <T>foo2():Int where T : List<T> {\n" +
|
" i < test -> -1\n"+
|
||||||
" return 0\n" +
|
" i > test -> 1\n"+
|
||||||
" }\n" +
|
" else -> 0\n"+
|
||||||
"}\n\n" +
|
" })\n"+
|
||||||
"class AnotherClass<T:Any>: Some";
|
" }\n"+
|
||||||
|
" return test\n"+
|
||||||
|
" }\n"+
|
||||||
|
" private fun <T>foo2(): Int where T : List<T> {\n"+
|
||||||
|
" return 0\n"+
|
||||||
|
" }\n"+
|
||||||
|
"}\n"+
|
||||||
|
"class AnotherClass<T : Any> : Some()\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user