Fix @override documentation
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* This is a hack to prevent inheritDoc and override tags from entirely removing
|
* This is a hack to prevent inheritDoc tags from entirely removing
|
||||||
* documentation of the method that inherits the documentation.
|
* documentation of the method that inherits the documentation.
|
||||||
*
|
*
|
||||||
* TODO: Remove this hack when https://github.com/jsdoc3/jsdoc/issues/53
|
* TODO: Remove this hack when https://github.com/jsdoc3/jsdoc/issues/53
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
exports.nodeVisitor = {
|
exports.nodeVisitor = {
|
||||||
|
|
||||||
visitNode: function(node, e, parser, currentSourceName) {
|
visitNode: function(node, e, parser, currentSourceName) {
|
||||||
if (/@(inheritDoc|override)(\n|\r)/.test(e.comment)) {
|
if (/@(inheritDoc)(\n|\r)/.test(e.comment)) {
|
||||||
e.preventDefault = true;
|
e.preventDefault = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user