( key: CompilerDeprecationTypes, context: MergedParserOptions | TransformContext, loc: SourceLocation | null, ...args: any[] )
| 115 | } |
| 116 | |
| 117 | export function checkCompatEnabled( |
| 118 | key: CompilerDeprecationTypes, |
| 119 | context: MergedParserOptions | TransformContext, |
| 120 | loc: SourceLocation | null, |
| 121 | ...args: any[] |
| 122 | ): boolean { |
| 123 | const enabled = isCompatEnabled(key, context) |
| 124 | if (__DEV__ && enabled) { |
| 125 | warnDeprecation(key, context, loc, ...args) |
| 126 | } |
| 127 | return enabled |
| 128 | } |
| 129 | |
| 130 | export function warnDeprecation( |
| 131 | key: CompilerDeprecationTypes, |
no test coverage detected