UNPKG

@rightcapital/php-parser

Version:

TypeScript types for PHP Parser JSON representation

11 lines (10 loc) 779 B
import type { IUses } from './node-retriever-helpers'; export declare class FilePathHelpers { static extendNameNodePartsByUses(nodeParts: string[], uses: IUses): string[]; static getFilePathFromNameNodeParts(nodeParts: string[], parentNodeType: 'Name' | 'Name_FullyQualified' | 'Name_Relative', filePathParts: string[], uses: IUses): string; static getRelativePathBasePhpParserAutoloadRoot(fileParts: string[]): string[]; static getRelativePathToTypesRootPathByPhpFileParts(fullFileParts: string[]): string; static getTypesRootPath(): string; static getFullyQualifiedNodeNameByFilePath(filePath: string): string; static getFullyQualifiedParentNodeNameByFilePath(fileRelativePath: string, parentNodeFilePath: string, parentNodeName: string): string; }