@aurahelper/languages
Version:
Language Libraries to work with XML, Aura, Apex... files. tokenizers, parsers, system classes and much more
15 lines (14 loc) • 657 B
TypeScript
import { ParserData, Token } from "@aurahelper/core";
/**
* Class to Tokenize any apex node to extract all tokens
*/
export declare class ApexTokenizer {
/**
* Method to tokenize an Apex file
* @param {string} filePathOrContent File path or file content to tokenize
* @param {ParserData} [systemData] Object with the system data to identify tokens with more precission
* @param {number} [tabSize] Integer number with the tab size for the file
* @returns {Token[]} Returns an array with all file tokens
*/
static tokenize(filePathOrContent: string, systemData?: ParserData, tabSize?: number): Token[];
}