UNPKG

@rightcapital/phpdoc-parser

Version:

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

22 lines (21 loc) 654 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConstExprArrayItemNode = void 0; const const_expr_node_1 = require("./const-expr-node"); class ConstExprArrayItemNode extends const_expr_node_1.ConstExprNode { constructor(key, value) { super(); this.key = key; this.value = value; } toString() { if (this.key !== null) { return `${this.key.toString()} => ${this.value.toString()}`; } return this.value.toString(); } getNodeType() { return 'ConstExprArrayItemNode'; } } exports.ConstExprArrayItemNode = ConstExprArrayItemNode;