summaryrefslogtreecommitdiffstats
path: root/src/DocGen/CGen.ts
diff options
context:
space:
mode:
authorRowan Goemans <RB.Goemans@student.han.nl>2017-10-30 01:46:33 +0100
committerRowan Goemans <RB.Goemans@student.han.nl>2017-10-30 01:46:33 +0100
commit5ae892f8267c76473330e5da3d2eafdb4f6447ef (patch)
treedcad101896db2e2e0867168bd233c97711920a0c /src/DocGen/CGen.ts
parentd2bda50f26bffd6a56574188704d9df50fecabf8 (diff)
downloaddoxdocgen-5ae892f8267c76473330e5da3d2eafdb4f6447ef.tar.gz
-- Completely rewritten parser to support all known(to me) C++ constructs, this includes:
- Function pointers as parameters and as returns. - Template support. - Trailing return type. - Variadic templates. - Variadic parametes, C style and template style. - Correct parsing of template types with more then 1 template parameter.
Diffstat (limited to 'src/DocGen/CGen.ts')
-rw-r--r--src/DocGen/CGen.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DocGen/CGen.ts b/src/DocGen/CGen.ts
index e333014..d6c45cf 100644
--- a/src/DocGen/CGen.ts
+++ b/src/DocGen/CGen.ts
@@ -27,21 +27,21 @@ export default class CGen implements IDocGen {
/**
* @param {TextEditor} actEdit Active editor window
* @param {Position} cursorPosition Where the cursor of the user currently is
- * @param {string[]} param The parameter names of the method extracted by the parser
+ * @param {string[]} params The parameter names of the method extracted by the parser
* @param {string[]} tparam The template parameter names of the method extracted by the parser.
* @param {string[]} returnVals The return values extracted by the parser
*/
public constructor(
actEdit: TextEditor,
cursorPosition: Position,
- param: string[],
+ params: string[],
tparam: string[],
returnVals: string[],
) {
this.activeEditor = actEdit;
this.templateParamReplace = "{param}";
this.templateTypeReplace = "{type}";
- this.params = param;
+ this.params = params;
this.tparams = tparam;
this.retVals = returnVals;
}