UNPKG

@rightcapital/phpdoc-parser

Version:

TypeScript version of PHPDoc parser with support for intersection types and generics

21 lines (20 loc) 737 B
import { BaseNode } from '../ast/base-node'; import { PhpDocNode } from '../ast/php-doc/php-doc-node'; import type { TokenIterator } from '../parser/token-iterator'; export declare class Printer { private differ; private listInsertionMap; private emptyListInsertionMap; private parenthesesMap; private parenthesesListMap; printFormatPreserving(node: PhpDocNode, originalNode: PhpDocNode, originalTokens: TokenIterator): string; print(node: BaseNode): string; private printTagValue; private printType; private wrapInParentheses; private printOffsetAccessType; private printConstExpr; private printArrayFormatPreserving; private isMultiline; private printNodeFormatPreserving; }