(source: string)
| 447 | const METAL_ATTRIBUTE_RE = |
| 448 | /\[\[\s*[A-Za-z_]\w*(?:\s*\([^()\n]*\))?(?:\s*,\s*[A-Za-z_]\w*(?:\s*\([^()\n]*\))?)*\s*\]\]/g; |
| 449 | export function blankMetalAttributes(source: string): string { |
| 450 | if (source.indexOf('[[') === -1) return source; |
| 451 | return source.replace(METAL_ATTRIBUTE_RE, (m) => ' '.repeat(m.length)); |
| 452 | } |
| 453 | |
| 454 | /** |
| 455 | * Blank annotation-style macro invocations that decorate a declaration but carry |
no outgoing calls
no test coverage detected