summaryrefslogtreecommitdiffstats
path: root/src/DocGen/CGen.ts
diff options
context:
space:
mode:
authorRowan Goemans <RB.Goemans@student.han.nl>2017-11-05 01:54:59 +0100
committerChristoph Schlosser <christophschlosser@users.noreply.github.com>2017-11-05 18:45:08 +0100
commit3ebbc6d87cca65c2175266ae4b525a8ae6f8739b (patch)
tree7ebae5c7ef7d6ad6d27d3ddd4668c7b4e27ae1b6 /src/DocGen/CGen.ts
parentec691aad83da0adcf13986fd3d24b213ef963116 (diff)
downloaddoxdocgen-3ebbc6d87cca65c2175266ae4b525a8ae6f8739b.tar.gz
-- Added support for null in the comment generation.
Diffstat (limited to 'src/DocGen/CGen.ts')
-rw-r--r--src/DocGen/CGen.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DocGen/CGen.ts b/src/DocGen/CGen.ts
index d6c45cf..13ecbf1 100644
--- a/src/DocGen/CGen.ts
+++ b/src/DocGen/CGen.ts
@@ -147,7 +147,7 @@ export default class CGen implements IDocGen {
if (this.returnTemplate.trim().length !== 0 && this.retVals.length > 0) {
if (this.includeTypeAtReturn === false) {
- this.retVals = this.retVals.map((t) => t === "true" || t === "false" ? t : "");
+ this.retVals = this.retVals.map((t) => t === "true" || t === "false" || t === "null" ? t : "");
}
this.generateFromTemplate(lines, this.templateTypeReplace, this.returnTemplate, this.retVals);