UNPKG

@rightcapital/php-parser

Version:

TypeScript types for PHP Parser JSON representation

33 lines (32 loc) 876 B
#!/usr/bin/env ts-node import { type IProperty, type IUses } from './helpers/node-retriever-helpers'; export interface INodeOutput { nodeName: string; fullyQualifiedNodeName: string; fullyQualifiedParentNodeName: string; parentNodeParts: string[]; parentNodeName: string; parentNodeFilePath: string; properties: IProperty[]; nodeType: string; fileName: string; filePath: string; filePathParts: string[]; uses: IUses; uniqueImportDeclarationGeneratedStrings: string[]; } export interface IContextNodeItem { name: string; nodeType: string; subNodeNames: string[]; parentNodeName: string; filePath: string; properties: IProperty[]; } export interface ICliContext { allNodeNames: string[]; allNodes: { [nodeType: string]: IContextNodeItem; }; temporaryNodeTypeRootPath: string; }