From 5ae892f8267c76473330e5da3d2eafdb4f6447ef Mon Sep 17 00:00:00 2001 From: Rowan Goemans Date: Mon, 30 Oct 2017 01:46:33 +0100 Subject: -- 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. --- src/DocGen/CGen.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/DocGen/CGen.ts') 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; } -- cgit v1.2.3