summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2017-11-25 19:06:14 +0100
committerChristoph Schlosser <christophschlosser@users.noreply.github.com>2017-12-16 21:48:09 +0100
commitab3a71d958273915512f5da948ef73c8b5ac26d8 (patch)
tree096b71287d206f642b303698ab3d016d3d084c9f /src
parent89eeb57390b35b8185c1668a91fe99e8be077705 (diff)
downloaddoxdocgen-ab3a71d958273915512f5da948ef73c8b5ac26d8.tar.gz
Cleanup Parser interface
Diffstat (limited to 'src')
-rw-r--r--src/CodeParser/CParser/CParser.ts2
-rw-r--r--src/CodeParser/CodeParser.ts3
-rw-r--r--src/CodeParser/CodeParserController.ts2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/CodeParser/CParser/CParser.ts b/src/CodeParser/CParser/CParser.ts
index b9219c7..9ec7e14 100644
--- a/src/CodeParser/CParser/CParser.ts
+++ b/src/CodeParser/CParser/CParser.ts
@@ -113,7 +113,7 @@ export default class CParser implements ICodeParser {
/**
* @inheritdoc
*/
- public Parse(activeEdit: TextEditor, event: TextDocumentContentChangeEvent): IDocGen {
+ public Parse(activeEdit: TextEditor): IDocGen {
this.activeEditor = activeEdit;
this.activeSelection = this.activeEditor.selection.active;
diff --git a/src/CodeParser/CodeParser.ts b/src/CodeParser/CodeParser.ts
index 5d0d0bf..cc2c709 100644
--- a/src/CodeParser/CodeParser.ts
+++ b/src/CodeParser/CodeParser.ts
@@ -4,7 +4,6 @@ export default interface ICodeParser {
/**
* @param {TextEditor} activeEditor The open active Editor where the event came from
- * @param {TextDocumentContentChangeEvent} event Something in the document changed
*/
- Parse(activeEditor: TextEditor, event: TextDocumentContentChangeEvent);
+ Parse(activeEditor: TextEditor);
}
diff --git a/src/CodeParser/CodeParserController.ts b/src/CodeParser/CodeParserController.ts
index f4c07de..7eae9c0 100644
--- a/src/CodeParser/CodeParserController.ts
+++ b/src/CodeParser/CodeParserController.ts
@@ -114,6 +114,6 @@ export default class CodeParserController {
const nextLineText: string = window.activeTextEditor.document.lineAt(startReplace.line + 1).text;
const endReplace = new Position(currentPos.line + 1, nextLineText.length);
- parser.Parse(activeEditor, event).GenerateDoc(new Range(startReplace, endReplace));
+ parser.Parse(activeEditor).GenerateDoc(new Range(startReplace, endReplace));
}
}