UNPKG

@rightcapital/phpdoc-parser

Version:

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

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