UNPKG

@rightcapital/phpdoc-parser

Version:

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

19 lines (18 loc) 531 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PhpDocTagNode = void 0; const php_doc_child_node_1 = require("./php-doc-child-node"); class PhpDocTagNode extends php_doc_child_node_1.PhpDocChildNode { constructor(name, value) { super(); this.name = name; this.value = value; } toString() { return `${this.name} ${this.value.toString()}`.trim(); } getNodeType() { return 'PhpDocTagNode'; } } exports.PhpDocTagNode = PhpDocTagNode;