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 @@
@0:0..10 FILE fqName:<root> fileName:/fakeOverrides.kt
@0:0..10 CLASS CLASS name:Test modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@0:0..10 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test flags:
@0:0..10 CONSTRUCTOR visibility:public <> () returnType:Test flags:primary
@0:0..10 BLOCK_BODY
@0:0..10 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@0:0..10 INSTANCE_INITIALIZER_CALL classDescriptor='Test'
@0:0..10 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@0:0..10 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@0:0..10 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@0:0..10 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@0:0..10 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@0:0..10 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@0:0..10 VALUE_PARAMETER name:<this> type:kotlin.Any flags: