(definition)
| 271 | return { file: fileDirective, own }; |
| 272 | }, |
| 273 | async swiftExtension(definition) { |
| 274 | if (definition.language !== 'swift' || definition.kind !== 'class') return false; |
| 275 | const file = resolve(definition); |
| 276 | if (!file) return false; |
| 277 | const text = readText(file.abs); |
| 278 | return text !== null && declaresExtension(text.split(/\r?\n/), definition); |
| 279 | }, |
| 280 | }; |
| 281 | } |
| 282 |
nothing calls this directly
no test coverage detected