function DocLinkTag(parameters) {
        var _this = _super.call(this, parameters) || this;
        if (_this.tagNameWithUpperCase !== '@LINK') {
            throw new Error('DocLinkTag requires the tag name to be "{@link}"');
        }
        _this._codeDestination = parameters.codeDestination;
        if (DocNode.isParsedParameters(parameters)) {
            if (parameters.codeDestination !== undefined && parameters.urlDestinationExcerpt !== undefined) {
                throw new Error('Either the codeDestination or the urlDestination may be specified, but not both');
            }
            if (parameters.urlDestinationExcerpt) {
                _this._urlDestinationExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "LinkTag_UrlDestination" /* LinkTag_UrlDestination */,
                    content: parameters.urlDestinationExcerpt
                });
            }
            if (parameters.spacingAfterDestinationExcerpt) {
                _this._spacingAfterDestinationExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "Spacing" /* Spacing */,
                    content: parameters.spacingAfterDestinationExcerpt
                });
            }
            if (parameters.pipeExcerpt) {
                _this._pipeExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "LinkTag_Pipe" /* LinkTag_Pipe */,
                    content: parameters.pipeExcerpt
                });
            }
            if (parameters.spacingAfterPipeExcerpt) {
                _this._spacingAfterPipeExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "Spacing" /* Spacing */,
                    content: parameters.spacingAfterPipeExcerpt
                });
            }
            if (parameters.linkTextExcerpt) {
                _this._linkTextExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "LinkTag_LinkText" /* LinkTag_LinkText */,
                    content: parameters.linkTextExcerpt
                });
            }
            if (parameters.spacingAfterLinkTextExcerpt) {
                _this._spacingAfterLinkTextExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "Spacing" /* Spacing */,
                    content: parameters.spacingAfterLinkTextExcerpt
                });
            }
        }
        else {
            if (parameters.codeDestination !== undefined && parameters.urlDestination !== undefined) {
                throw new Error('Either the codeDestination or the urlDestination may be specified, but not both');
            }
            _this._urlDestination = parameters.urlDestination;
            _this._linkText = parameters.linkText;
        }
        return _this;
    }
/**
     * Don't call this directly.  Instead use {@link TSDocParser}
     * @internal
     */
Don't call this directly.  Instead use  TSDocParser
@internal
Don ' t call this directly . Instead use TSDocParser @internal
function DocLinkTag(parameters) {
        var _this = _super.call(this, parameters) || this;
        if (_this.tagNameWithUpperCase !== '@LINK') {
            throw new Error('DocLinkTag requires the tag name to be "{@link}"');
        }
        _this._codeDestination = parameters.codeDestination;
        if (DocNode.isParsedParameters(parameters)) {
            if (parameters.codeDestination !== undefined && parameters.urlDestinationExcerpt !== undefined) {
                throw new Error('Either the codeDestination or the urlDestination may be specified, but not both');
            }
            if (parameters.urlDestinationExcerpt) {
                _this._urlDestinationExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "LinkTag_UrlDestination" ,
                    content: parameters.urlDestinationExcerpt
                });
            }
            if (parameters.spacingAfterDestinationExcerpt) {
                _this._spacingAfterDestinationExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "Spacing" ,
                    content: parameters.spacingAfterDestinationExcerpt
                });
            }
            if (parameters.pipeExcerpt) {
                _this._pipeExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "LinkTag_Pipe" ,
                    content: parameters.pipeExcerpt
                });
            }
            if (parameters.spacingAfterPipeExcerpt) {
                _this._spacingAfterPipeExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "Spacing" ,
                    content: parameters.spacingAfterPipeExcerpt
                });
            }
            if (parameters.linkTextExcerpt) {
                _this._linkTextExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "LinkTag_LinkText" ,
                    content: parameters.linkTextExcerpt
                });
            }
            if (parameters.spacingAfterLinkTextExcerpt) {
                _this._spacingAfterLinkTextExcerpt = new DocExcerpt({
                    configuration: _this.configuration,
                    excerptKind: "Spacing" ,
                    content: parameters.spacingAfterLinkTextExcerpt
                });
            }
        }
        else {
            if (parameters.codeDestination !== undefined && parameters.urlDestination !== undefined) {
                throw new Error('Either the codeDestination or the urlDestination may be specified, but not both');
            }
            _this._urlDestination = parameters.urlDestination;
            _this._linkText = parameters.linkText;
        }
        return _this;
    }
function DocLinkTag ( parameters ) { var _this = _super . call ( this , parameters ) || this ; if ( _this . tagNameWithUpperCase !== '@LINK' ) { throw new Error ( 'DocLinkTag requires the tag name to be "{@link}"' ) ; } _this . _codeDestination = parameters . codeDestination ; if ( DocNode . isParsedParameters ( parameters ) ) { if ( parameters . codeDestination !== undefined && parameters . urlDestinationExcerpt !== undefined ) { throw new Error ( 'Either the codeDestination or the urlDestination may be specified, but not both' ) ; } if ( parameters . urlDestinationExcerpt ) { _this . _urlDestinationExcerpt = new DocExcerpt ( { configuration : _this . configuration , excerptKind : "LinkTag_UrlDestination" , content : parameters . urlDestinationExcerpt } ) ; } if ( parameters . spacingAfterDestinationExcerpt ) { _this . _spacingAfterDestinationExcerpt = new DocExcerpt ( { configuration : _this . configuration , excerptKind : "Spacing" , content : parameters . spacingAfterDestinationExcerpt } ) ; } if ( parameters . pipeExcerpt ) { _this . _pipeExcerpt = new DocExcerpt ( { configuration : _this . configuration , excerptKind : "LinkTag_Pipe" , content : parameters . pipeExcerpt } ) ; } if ( parameters . spacingAfterPipeExcerpt ) { _this . _spacingAfterPipeExcerpt = new DocExcerpt ( { configuration : _this . configuration , excerptKind : "Spacing" , content : parameters . spacingAfterPipeExcerpt } ) ; } if ( parameters . linkTextExcerpt ) { _this . _linkTextExcerpt = new DocExcerpt ( { configuration : _this . configuration , excerptKind : "LinkTag_LinkText" , content : parameters . linkTextExcerpt } ) ; } if ( parameters . spacingAfterLinkTextExcerpt ) { _this . _spacingAfterLinkTextExcerpt = new DocExcerpt ( { configuration : _this . configuration , excerptKind : "Spacing" , content : parameters . spacingAfterLinkTextExcerpt } ) ; } } else { if ( parameters . codeDestination !== undefined && parameters . urlDestination !== undefined ) { throw new Error ( 'Either the codeDestination or the urlDestination may be specified, but not both' ) ; } _this . _urlDestination = parameters . urlDestination ; _this . _linkText = parameters . linkText ; } return _this ; }
Don't call this directly.
Don ' t call this directly .
/* LinkTag_UrlDestination */ /* Spacing */ /* LinkTag_Pipe */ /* Spacing */ /* LinkTag_LinkText */ /* Spacing */