( deps: nga.DependencyMetadata[], content: MagicString | string, guards: nga.SpanMetadata[] = [], )
| 278 | } |
| 279 | |
| 280 | function mapDeps( |
| 281 | deps: nga.DependencyMetadata[], |
| 282 | content: MagicString | string, |
| 283 | guards: nga.SpanMetadata[] = [], |
| 284 | ): R3DependencyMetadata[] { |
| 285 | return deps.map((dep): R3DependencyMetadata => { |
| 286 | let token: o.Expression | null = null; |
| 287 | if (dep.tokenSpan) { |
| 288 | token = rawSlice(content, dep.tokenSpan, guards); |
| 289 | } |
| 290 | return { |
| 291 | token, |
| 292 | attributeNameType: null, |
| 293 | host: dep.host, |
| 294 | optional: dep.optional, |
| 295 | self: dep.self, |
| 296 | skipSelf: dep.skipSelf, |
| 297 | }; |
| 298 | }); |
| 299 | } |
| 300 | |
| 301 | export async function processFile( |
| 302 | rawCtx: HybridCompilerContext, |
no test coverage detected