(item: ls.CodeLens | undefined | null)
| 487 | function asCodeLens(item: undefined | null): undefined; |
| 488 | function asCodeLens(item: ls.CodeLens | undefined | null): code.CodeLens | undefined; |
| 489 | function asCodeLens(item: ls.CodeLens | undefined | null): code.CodeLens | undefined { |
| 490 | if (!item) { |
| 491 | return undefined; |
| 492 | } |
| 493 | let result: ProtocolCodeLens = new ProtocolCodeLens(asRange(item.range)); |
| 494 | if (item.command) { result.command = asCommand(item.command); } |
| 495 | if (item.data !== void 0 && item.data !== null) { result.data = item.data; } |
| 496 | return result; |
| 497 | } |
| 498 | |
| 499 | function asCodeLenses(items: ls.CodeLens[]): code.CodeLens[]; |
| 500 | function asCodeLenses(items: undefined | null): undefined; |
no test coverage detected