summaryrefslogtreecommitdiffstats
path: root/src/Lang
diff options
context:
space:
mode:
authorDaan Huinink <daan@huinink.net>2020-05-27 11:27:30 +0200
committerGitHub <noreply@github.com>2020-05-27 11:27:30 +0200
commit07b6f8998d3daa3ce3e4d56376f0b69cd6e382ec (patch)
treee60584bb0395436d2fa9c8fe42b5e9f4a842679c /src/Lang
parent38d5349b0e2b1177f45adc6a800360c32a6f70d1 (diff)
downloaddoxdocgen-07b6f8998d3daa3ce3e4d56376f0b69cd6e382ec.tar.gz
Fixed a bug where the argument type would be placed as the param instead of the argument name. (#154)
Diffstat (limited to 'src/Lang')
-rw-r--r--src/Lang/Cpp/CppParser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Lang/Cpp/CppParser.ts b/src/Lang/Cpp/CppParser.ts
index dcdfcba..d51f853 100644
--- a/src/Lang/Cpp/CppParser.ts
+++ b/src/Lang/Cpp/CppParser.ts
@@ -686,7 +686,7 @@ export default class CppParser implements ICodeParser {
if (node.type === CppTokenType.Symbol
&& this.keywords.find((k) => k === node.value) === undefined
) {
- if (symbolCount === 1 && argument.name === null) {
+ if (symbolCount === 1) {
argument.name = node.value;
continue;
} else if (symbolCount > 1) {