Support incremental analysis of comment and kdoc

#KT-35189 Fixed
This commit is contained in:
Vladimir Dolzhenko
2019-11-27 13:59:27 +01:00
parent 664d69b752
commit f709377735
6 changed files with 47 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
// OUT_OF_CODE_BLOCK: FALSE
// TYPE: '//'
// ERROR: A 'return' expression required in a function with a block body ('{...}')
fun comment(): String {
<caret>return ""
}
+7
View File
@@ -0,0 +1,7 @@
// OUT_OF_CODE_BLOCK: FALSE
// TYPE: 'some text'
// <caret>
fun comment(): String {
return ""
}
+9
View File
@@ -0,0 +1,9 @@
// OUT_OF_CODE_BLOCK: FALSE
// TYPE: 'some text'
/**
* <caret>
*/
fun kDoc(): String {
return ""
}
@@ -0,0 +1,4 @@
// OUT_OF_CODE_BLOCK: FALSE
class Test {
val a: String = "aasdf<caret>"
}