* `sliceGuarded` wrapped for the output AST, remembering `span` so HMR can tell which identifier * reads the emitted text contains.
( s: MagicString | string, span: nga.SpanMetadata, guards: nga.SpanMetadata[], functionSpans?: nga.SpanMetadata[], )
| 2305 | * reads the emitted text contains. |
| 2306 | */ |
| 2307 | function rawSlice( |
| 2308 | s: MagicString | string, |
| 2309 | span: nga.SpanMetadata, |
| 2310 | guards: nga.SpanMetadata[], |
| 2311 | functionSpans?: nga.SpanMetadata[], |
| 2312 | ): o.WrappedNodeExpr<RawSource> { |
| 2313 | return new o.WrappedNodeExpr(new RawSource(sliceGuarded(s, span, guards, functionSpans), [span])); |
| 2314 | } |
| 2315 | |
| 2316 | /** |
| 2317 | * Build the `{ type: <Identifier>, args: [...] }` metadata object for a single decorator, slicing |
no test coverage detected