(source: string)
| 437 | const METAL_ATTRIBUTE_RE = |
| 438 | /\[\[\s*[A-Za-z_]\w*(?:\s*\([^()\n]*\))?(?:\s*,\s*[A-Za-z_]\w*(?:\s*\([^()\n]*\))?)*\s*\]\]/g; |
| 439 | export function blankMetalAttributes(source: string): string { |
| 440 | if (source.indexOf('[[') === -1) return source; |
| 441 | return source.replace(METAL_ATTRIBUTE_RE, (m) => ' '.repeat(m.length)); |
| 442 | } |
| 443 | |
| 444 | /** |
| 445 | * Blank annotation-style macro invocations that decorate a declaration but carry |
no outgoing calls
no test coverage detected