@rightcapital/php-parser
Version:
TypeScript types for PHP Parser JSON representation
13 lines (9 loc) • 517 B
text/typescript
import type { Identifier } from './identifier'; // fullyQualifiedNodeName FullyQualifiedIdentifier
// eslint-disable-next-line @typescript-eslint/naming-convention
export interface VarLikeIdentifier extends Omit<Identifier, 'nodeType'> {
nodeType: 'VarLikeIdentifier';
}
// We also need to export a symbol by using node type
// since the nodeName is possibly duplicated
// for the files need to import all nodes, we needs to use nodeType insteads
export type FullyQualifiedVarLikeIdentifier = VarLikeIdentifier;