@rightcapital/phpdoc-parser
Version:
TypeScript version of PHPDoc parser with support for intersection types and generics
17 lines (16 loc) • 617 B
TypeScript
import type { ConstExprNode } from '../ast/const-expr/const-expr-node';
import type { TokenIterator } from './token-iterator';
export declare class ConstExprParser {
private unescapeStrings;
private quoteAwareConstExprString;
private useLinesAttributes;
private useIndexAttributes;
constructor(unescapeStrings?: boolean, quoteAwareConstExprString?: boolean, usedAttributes?: {
lines?: boolean;
indexes?: boolean;
});
parse(tokens: TokenIterator, trimStrings?: boolean): ConstExprNode;
private parseArray;
private parseArrayItem;
private enrichWithAttributes;
}