( expression: NodePath, localizeName: string, )
| 28 | * @param localizeName The configured name of `$localize`. |
| 29 | */ |
| 30 | export function isLocalize( |
| 31 | expression: NodePath, |
| 32 | localizeName: string, |
| 33 | ): expression is NodePath<t.Identifier> { |
| 34 | return isNamedIdentifier(expression, localizeName) && isGlobalIdentifier(expression); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Is the given `expression` an identifier with the correct `name`? |
no test coverage detected
searching dependent graphs…