UNPKG

@rightcapital/phpdoc-parser

Version:

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

65 lines (64 loc) 1.97 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TypeNode = void 0; const base_node_1 = require("../base-node"); class TypeNode extends base_node_1.BaseNode { getNodeType() { return 'TypeNode'; } isArrayShapeItemNode() { return this.getNodeType() === 'ArrayShapeItemNode'; } isArrayShapeNode() { return this.getNodeType() === 'ArrayShapeNode'; } isArrayTypeNode() { return this.getNodeType() === 'ArrayTypeNode'; } isCallableTypeNode() { return this.getNodeType() === 'CallableTypeNode'; } isCallableTypeParameterNode() { return this.getNodeType() === 'CallableTypeParameterNode'; } isConditionalTypeForParameterNode() { return this.getNodeType() === 'ConditionalTypeForParameterNode'; } isConditionalTypeNode() { return this.getNodeType() === 'ConditionalTypeNode'; } isConstTypeNode() { return this.getNodeType() === 'ConstTypeNode'; } isGenericTypeNode() { return this.getNodeType() === 'GenericTypeNode'; } isIdentifierTypeNode() { return this.getNodeType() === 'IdentifierTypeNode'; } isIntersectionTypeNode() { return this.getNodeType() === 'IntersectionTypeNode'; } isInvalidTypeNode() { return this.getNodeType() === 'InvalidTypeNode'; } isNullableTypeNode() { return this.getNodeType() === 'NullableTypeNode'; } isObjectShapeItemNode() { return this.getNodeType() === 'ObjectShapeItemNode'; } isObjectShapeNode() { return this.getNodeType() === 'ObjectShapeNode'; } isOffsetAccessTypeNode() { return this.getNodeType() === 'OffsetAccessTypeNode'; } isThisTypeNode() { return this.getNodeType() === 'ThisTypeNode'; } isUnionTypeNode() { return this.getNodeType() === 'UnionTypeNode'; } } exports.TypeNode = TypeNode;