KT-28324 More exact startOffset for function/constructor declarations

Function/constructor declaration start offset is the start offset of the
corresponding declaration token, if available.
This commit is contained in:
Dmitry Petrov
2018-11-21 18:04:41 +03:00
parent dfe662364d
commit 7dd906db44
26 changed files with 1008 additions and 73 deletions
@@ -0,0 +1,14 @@
class Test1(val x: Int)
class Test2
internal constructor(val x: Int)
class Test3
/**
* comment
*/
constructor(val x: Int)
class Test4
@Suppress("UNUSED_VARIABLE")
constructor(val x: Int)