package Ġcom . ru in . lsp . commands . document . symbol Ċ Ċ import Ġcom . ru in . lsp .* Ċ import Ġorg . eclipse . lsp 4 j . Symbol Kind Ċ Ċ class ĠDocument Symbol Command TestCase Kt Ġ: ĠDocument Symbol Command TestBase () Ġ{ ĊĠĠĠ Ġoverride Ġval ĠprojectName Ġ= ĠK OT LIN _ PROJECT ĊĊĠĠĠ Ġfun Ġ` test Ġfile Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" Dummy . kt ", Ġnull , ĠSymbol Kind . File , Ġrange ( 0 , Ġ 0 , Ġ 9 8 , Ġ 0 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġmodule Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" org . lsp . kotlin project . Dummy ", Ġ" Dummy . kt ", ĠSymbol Kind . Module , Ġrange ( 2 , Ġ 0 , Ġ 2 , Ġ 3 4 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġpackage Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" org . lsp . kotlin project ", Ġ" Dummy . kt ", ĠSymbol Kind . Package , Ġrange ( 0 , Ġ 0 , Ġ 0 , Ġ 2 9 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġclass Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" Dummy ", Ġ" Dummy . kt ", ĠSymbol Kind . Class , Ġrange ( 8 , Ġ 1 1 , Ġ 8 , Ġ 1 6 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġmethod Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" b oring ()", Ġ" Dummy ", ĠSymbol Kind . Method , Ġrange ( 1 0 , Ġ 8 , Ġ 1 0 , Ġ 1 4 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" not B oring ( Int )", Ġ" Dummy ", ĠSymbol Kind . Method , Ġrange ( 2 1 , Ġ 8 , Ġ 2 1 , Ġ 1 7 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" not B oring ( Int , ĠString )", Ġ" Dummy ", ĠSymbol Kind . Method , Ġrange ( 2 5 , Ġ 1 7 , Ġ 2 5 , Ġ 2 6 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" fluid ()", Ġ" Dummy ", ĠSymbol Kind . Method , Ġrange ( 2 7 , Ġ 8 , Ġ 2 7 , Ġ 1 3 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" more B oring ()", Ġ" Dummy ", ĠSymbol Kind . Method , Ġrange ( 4 0 , Ġ 1 7 , Ġ 4 0 , Ġ 2 7 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" answer Question ( String )", Ġ" Companion ", ĠSymbol Kind . Function , Ġrange ( 4 7 , Ġ 2 1 , Ġ 4 7 , Ġ 3 5 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" outside Package ( Int )", Ġ" Dummy . kt ", ĠSymbol Kind . Function , Ġrange ( 6 9 , Ġ 4 , Ġ 6 9 , Ġ 1 8 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġproperty Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( SUB CLASS _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol ("@ Override ", Ġ" abstract Method ()", ĠSymbol Kind . Property , Ġrange ( 1 0 , Ġ 4 , Ġ 1 0 , Ġ 1 3 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġfield Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" thing y ", Ġ" Dummy ", ĠSymbol Kind . Field , Ġrange ( 9 , Ġ 1 6 , Ġ 9 , Ġ 2 2 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġconstructor Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" Dummy ()", Ġ" Dummy ", ĠSymbol Kind . Constructor , Ġrange ( 3 3 , Ġ 4 , Ġ 3 3 , Ġ 2 9 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" Dummy ( Int )", Ġ" Dummy ", ĠSymbol Kind . Constructor , Ġrange ( 3 4 , Ġ 4 , Ġ 3 4 , Ġ 4 0 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" Dummy ( String )", Ġ" Dummy ", ĠSymbol Kind . Constructor , Ġrange ( 3 5 , Ġ 4 , Ġ 3 5 , Ġ 4 3 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" Dummy ( Int , ĠString )", Ġ" Dummy ", ĠSymbol Kind . Constructor , Ġrange ( 3 6 , Ġ 4 , Ġ 3 6 , Ġ 5 9 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġenum Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( ENUM _ TYPE _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" Enum Type ", Ġ" Enum Type . kt ", ĠSymbol Kind . Enum , Ġrange ( 2 , Ġ 1 1 , Ġ 2 , Ġ 1 9 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġinterface Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( INTERFACE _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" My Interface ", Ġ" My Interface . kt ", ĠSymbol Kind . Interface , Ġrange ( 4 , Ġ 1 0 , Ġ 4 , Ġ 2 1 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġvariable Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" list ", Ġ" b oring ()", ĠSymbol Kind . Variable , Ġrange ( 1 4 , Ġ 1 2 , Ġ 1 4 , Ġ 1 6 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" number ", Ġ" not B oring ( Int )", ĠSymbol Kind . Variable , Ġrange ( 2 1 , Ġ 1 8 , Ġ 2 1 , Ġ 2 4 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" problem ", Ġ" not B oring ( Int )", ĠSymbol Kind . Variable , Ġrange ( 2 2 , Ġ 1 2 , Ġ 2 2 , Ġ 1 9 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" number ", Ġ" not B oring ( Int , ĠString )", ĠSymbol Kind . Variable , Ġrange ( 2 5 , Ġ 2 7 , Ġ 2 5 , Ġ 3 3 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" foo ", Ġ" not B oring ( Int , ĠString )", ĠSymbol Kind . Variable , Ġrange ( 2 5 , Ġ 4 0 , Ġ 2 5 , Ġ 4 3 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" number ", Ġ" Dummy ( Int )", ĠSymbol Kind . Variable , Ġrange ( 3 4 , Ġ 2 5 , Ġ 3 4 , Ġ 3 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" string ", Ġ" Dummy ( String )", ĠSymbol Kind . Variable , Ġrange ( 3 5 , Ġ 2 5 , Ġ 3 5 , Ġ 3 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" number ", Ġ" Dummy ( Int , ĠString )", ĠSymbol Kind . Variable , Ġrange ( 3 6 , Ġ 2 5 , Ġ 3 6 , Ġ 3 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" and String ", Ġ" Dummy ( Int , ĠString )", ĠSymbol Kind . Variable , Ġrange ( 3 6 , Ġ 3 8 , Ġ 3 6 , Ġ 4 7 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" question ", Ġ" answer Question ( String )", ĠSymbol Kind . Variable , Ġrange ( 4 7 , Ġ 3 6 , Ġ 4 7 , Ġ 4 4 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġobject Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( OBJECT _ FILE _ PATH ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" My Object ", Ġ" My Object . kt ", ĠSymbol Kind . Class , Ġrange ( 4 , Ġ 7 , Ġ 4 , Ġ 1 5 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" Companion ", Ġ" Has Companion ", ĠSymbol Kind . Class , Ġrange ( 7 , Ġ 4 , Ġ 7 , Ġ 2 3 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġconstant Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( CONSTANT S _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" INT ", Ġ" Companion ", ĠSymbol Kind . Constant , Ġrange ( 9 , Ġ 1 8 , Ġ 9 , Ġ 2 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" STRING ", Ġ" Companion ", ĠSymbol Kind . Constant , Ġrange ( 1 0 , Ġ 2 6 , Ġ 1 0 , Ġ 3 2 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" ENUM _ TYPE ", Ġ" Companion ", ĠSymbol Kind . Field , Ġrange ( 1 1 , Ġ 1 2 , Ġ 1 1 , Ġ 2 1 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġstring Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol ("\" Hi \"", Ġ" b oring ()", ĠSymbol Kind . String , Ġrange ( 1 1 , Ġ 1 6 , Ġ 1 1 , Ġ 2 0 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol ("\" hi \"", Ġ" b oring ()", ĠSymbol Kind . String , Ġrange ( 1 5 , Ġ 1 7 , Ġ 1 5 , Ġ 2 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol ("\" foo \"", Ġ" more B oring ()", ĠSymbol Kind . String , Ġrange ( 4 1 , Ġ 2 2 , Ġ 4 1 , Ġ 2 7 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol ("\" life \"", Ġ" more B oring ()", ĠSymbol Kind . String , Ġrange ( 4 2 , Ġ 3 3 , Ġ 4 2 , Ġ 3 9 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol ("\" universe \"", Ġ" more B oring ()", ĠSymbol Kind . String , Ġrange ( 4 2 , Ġ 4 2 , Ġ 4 2 , Ġ 5 2 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġnumber Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( D UMMY _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" 4 2 ", Ġ" thing y ", ĠSymbol Kind . Number , Ġrange ( 9 , Ġ 2 5 , Ġ 9 , Ġ 2 7 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" 4 2 ", Ġ" b oring ()", ĠSymbol Kind . Number , Ġrange ( 1 6 , Ġ 1 8 , Ġ 1 6 , Ġ 2 0 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" 1 2 ", Ġ" b oring ()", ĠSymbol Kind . Number , Ġrange ( 1 7 , Ġ 1 7 , Ġ 1 7 , Ġ 1 9 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" 4 2 ", Ġ" more B oring ()", ĠSymbol Kind . Number , Ġrange ( 4 1 , Ġ 1 8 , Ġ 4 1 , Ġ 2 0 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" 4 2 ", Ġ" answer Question ( String )", ĠSymbol Kind . Number , Ġrange ( 4 8 , Ġ 1 9 , Ġ 4 8 , Ġ 2 1 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġboolean Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( CONSTANT S _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" true ", Ġ" yes ", ĠSymbol Kind . Boolean , Ġrange ( 4 , Ġ 1 4 , Ġ 4 , Ġ 1 8 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" false ", Ġ" no ", ĠSymbol Kind . Boolean , Ġrange ( 5 , Ġ 1 3 , Ġ 5 , Ġ 1 8 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// ĠTODO : Ġre add Ġwhen Ġsupported Ġby Ġlsp 4 j ĊĠĠĠ Ġ/* ĊĠĠĠ Ġfun Ġ` test Ġnull Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( CONSTANT S _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" null ", Ġ" maybe ", ĠSymbol Kind . NULL , Ġrange ( 1 0 , Ġ 2 0 , Ġ 1 0 , Ġ 2 4 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġenum Ġmember Ġsymbol `() Ġ{ ĊĠĠĠĠĠĠĠ Ġget Symbols ( for Kotlin ( ENUM _ TYPE _ FILE _ PATH )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" FOO ", Ġ" Enum Type ", ĠSymbol Kind . ENUM _ MEMBER , Ġrange ( 3 , Ġ 4 , Ġ 3 , Ġ 7 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" BAR ", Ġ" Enum Type ", ĠSymbol Kind . ENUM _ MEMBER , Ġrange ( 4 , Ġ 4 , Ġ 4 , Ġ 7 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assert Has Symbol (" BA Z ", Ġ" Enum Type ", ĠSymbol Kind . ENUM _ MEMBER , Ġrange ( 5 , Ġ 4 , Ġ 5 , Ġ 7 )) ĊĠĠĠ Ġ} ĊĠĠĠ Ġ*/ Ċ } Ċ