angular-estree-parser
Version:
A parser that converts Angular source code into an ESTree-compatible form
11 lines (10 loc) • 618 B
TypeScript
import type { LocationInformation, RawNGSpan } from './types.js';
export declare function fitSpans(span: RawNGSpan, text: string, hasParentParens: boolean): {
outerSpan: RawNGSpan;
innerSpan: RawNGSpan;
hasParens: boolean;
};
export declare function getCharacterLastIndex(text: string, pattern: RegExp | string, fromIndex: number): number;
export declare function getCharacterIndex(text: string, pattern: RegExp | string, fromIndex: number): number;
export declare function lowercaseFirst(str: string): string;
export declare function sourceSpanToLocationInformation(span: RawNGSpan): LocationInformation;