(
filePath: string,
className: string,
camelCaseConfig: CamelCaseValues,
)
| 112 | * Finds the position of the className in filePath |
| 113 | */ |
| 114 | export async function getPosition( |
| 115 | filePath: string, |
| 116 | className: string, |
| 117 | camelCaseConfig: CamelCaseValues, |
| 118 | ): Promise<Position | null> { |
| 119 | const classDict = await filePathToClassnameDict( |
| 120 | filePath, |
| 121 | getTransformer(camelCaseConfig), |
| 122 | ); |
| 123 | const target = classDict[`.${className}`]; |
| 124 | |
| 125 | return target |
| 126 | ? Position.create(target.position.line - 1, target.position.column) |
| 127 | : null; |
| 128 | } |
| 129 | |
| 130 | export function getWords( |
| 131 | line: string, |
no test coverage detected