3b100e57f2
Motivation: missing visibility modifier is an error in visibility modifiers list, so we should highlight this list. Including a name in the range is convenient for using alt+enter (you don't have to move cursor from name to fun/class/val keyword) Also change NO_EXPLICIT_RETURN_TYPE_IN_API_MODE diagnostic range to 'declaration name' to match corresponding IDE inspection. Fix stylistic problems and typos after review
10 lines
281 B
Kotlin
Vendored
10 lines
281 B
Kotlin
Vendored
// SKIP_TXT
|
|
|
|
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun foo<!>() {}
|
|
|
|
public fun foo2() {}
|
|
|
|
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun <!NO_EXPLICIT_RETURN_TYPE_IN_API_MODE!>bar<!><!>() = 10
|
|
public fun <!NO_EXPLICIT_RETURN_TYPE_IN_API_MODE!>bar2<!>() = 10
|
|
public fun bar3(): Int = 10
|