Support incremental analysis of comment and kdoc
#KT-35189 Fixed
This commit is contained in:
@@ -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 ""
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// OUT_OF_CODE_BLOCK: FALSE
|
||||
// TYPE: 'some text'
|
||||
|
||||
// <caret>
|
||||
fun comment(): String {
|
||||
return ""
|
||||
}
|
||||
@@ -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>"
|
||||
}
|
||||
Reference in New Issue
Block a user