@rightcapital/php-parser
Version:
TypeScript types for PHP Parser JSON representation
7 lines (6 loc) • 387 B
TypeScript
import type { NodeTypeInheritingFromNodeAbstract } from '../types/types';
export declare class CliHelpers {
static parsePhpFileToAst(phpFilePath: any): NodeTypeInheritingFromNodeAbstract[];
static parsePhpFileToAstAsync(phpFilePath: string): Promise<NodeTypeInheritingFromNodeAbstract[]>;
static parsePhpCodeStringToAst(code: string): NodeTypeInheritingFromNodeAbstract[];
}