summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2018-10-20 15:55:45 +0200
committerChristoph Schlosser <christoph@linux.com>2018-10-20 15:55:45 +0200
commit9a8ef8c9b8c994f1f381f8393eef6f40629b9017 (patch)
treefc6be3f736bd7ced7a7927179e92469db2940891
parent5d64d00fe54d649d0519a3e9f018a1f71cee693b (diff)
downloaddoxdocgen-python.tar.gz
Pass params to docgenpython
-rw-r--r--src/Lang/Python/PythonDocGen.ts6
-rw-r--r--src/Lang/Python/PythonParser.ts2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/Lang/Python/PythonDocGen.ts b/src/Lang/Python/PythonDocGen.ts
index 4b90f86..a784f3c 100644
--- a/src/Lang/Python/PythonDocGen.ts
+++ b/src/Lang/Python/PythonDocGen.ts
@@ -2,6 +2,12 @@ import { Range } from "vscode";
import { IDocGen } from "../../Common/IDocGen";
export class PythonDocGen implements IDocGen {
+ private params: string[];
+
+ public constructor(params: string[]) {
+ this.params = params;
+ }
+
public GenerateDoc(rangeToReplace: Range) {
throw new Error("Method not implemented.");
}
diff --git a/src/Lang/Python/PythonParser.ts b/src/Lang/Python/PythonParser.ts
index 74f1bef..261f420 100644
--- a/src/Lang/Python/PythonParser.ts
+++ b/src/Lang/Python/PythonParser.ts
@@ -18,7 +18,7 @@ export default class CppParser implements ICodeParser {
this.activeEditor = activeEditor;
this.activeSelection = activeEditor.selection.active;
const params = this.getParams(this.getLogicalLine());
- return new PythonDocGen();
+ return new PythonDocGen(params);
}
private getLogicalLine(): string {