diff options
| author | Christoph Schlosser <christoph@linux.com> | 2018-10-20 15:55:45 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2018-10-20 15:55:45 +0200 |
| commit | 9a8ef8c9b8c994f1f381f8393eef6f40629b9017 (patch) | |
| tree | fc6be3f736bd7ced7a7927179e92469db2940891 | |
| parent | 5d64d00fe54d649d0519a3e9f018a1f71cee693b (diff) | |
| download | doxdocgen-python.tar.gz | |
Pass params to docgenpython
| -rw-r--r-- | src/Lang/Python/PythonDocGen.ts | 6 | ||||
| -rw-r--r-- | src/Lang/Python/PythonParser.ts | 2 |
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 { |