diff options
| author | Rowan Goemans <RB.Goemans@student.han.nl> | 2017-10-15 02:32:52 +0200 |
|---|---|---|
| committer | Rowan Goemans <RB.Goemans@student.han.nl> | 2017-10-15 02:32:52 +0200 |
| commit | df8f38308b7871f2790b5b2cc466f7ce2add4362 (patch) | |
| tree | 8f8cddcd498c8ace73a0a198036d255d92c5af1a /src | |
| parent | cc0d69edcd362c1abde9d0005c70d8e3692395bc (diff) | |
| download | doxdocgen-df8f38308b7871f2790b5b2cc466f7ce2add4362.tar.gz | |
-- Fixed tslint issues v2
Diffstat (limited to 'src')
| -rw-r--r-- | src/CodeParser/CParser.ts | 10 | ||||
| -rw-r--r-- | src/DocGen/CGen.ts | 24 |
2 files changed, 17 insertions, 17 deletions
diff --git a/src/CodeParser/CParser.ts b/src/CodeParser/CParser.ts index 77b01eb..8b0bfe1 100644 --- a/src/CodeParser/CParser.ts +++ b/src/CodeParser/CParser.ts @@ -38,11 +38,11 @@ export default class CParser implements ICodeParser { const tparams: string[] = this.getTemplateParams(line); const cppGenerator: IDocGen = new Generator( - this.activeEditor, - this.activeSelection, - params, - tparams, - returnValue + this.activeEditor, + this.activeSelection, + params, + tparams, + returnValue, ); return cppGenerator; } diff --git a/src/DocGen/CGen.ts b/src/DocGen/CGen.ts index d4a1966..72bcfe0 100644 --- a/src/DocGen/CGen.ts +++ b/src/DocGen/CGen.ts @@ -1,6 +1,6 @@ -import { Position, Range, Selection, TextEditor, TextLine, WorkspaceEdit, workspace } from "vscode"; -import { IDocGen } from "./DocGen"; +import { Position, Range, Selection, TextEditor, TextLine, workspace, WorkspaceEdit } from "vscode"; import { Config, ConfigType } from "../Config"; +import { IDocGen } from "./DocGen"; export default class CGen implements IDocGen { protected firstLine: string; @@ -31,12 +31,12 @@ export default class CGen implements IDocGen { * @param {string[]} returnVals The return values extracted by the parser */ public constructor( - actEdit: TextEditor, - cursorPosition: - Position, - param: string[], - tparam: string[], - returnVals: string[] + actEdit: TextEditor, + cursorPosition: + Position, + param: string[], + tparam: string[], + returnVals: string[], ) { this.activeEditor = actEdit; this.position = cursorPosition; @@ -65,9 +65,9 @@ export default class CGen implements IDocGen { Implementation ***************************************************************************/ - protected readConfig() { + protected readConfig() { const getCfg = workspace.getConfiguration; - + this.firstLine = getCfg(ConfigType.generic).get<string>(Config.firstLine, ""); this.commentPrefix = getCfg(ConfigType.generic).get<string>(Config.commentPrefix, ""); this.lastLine = getCfg(ConfigType.generic).get<string>(Config.lastLine, ""); @@ -115,7 +115,7 @@ export default class CGen implements IDocGen { } protected generateComment(): string { - let lines: string[] = []; + const lines: string[] = []; if (this.firstLine.trim().length !== 0) { lines.push(this.firstLine); @@ -144,7 +144,7 @@ export default class CGen implements IDocGen { if (this.returnTemplate.trim().length !== 0 && this.retVals.length > 0) { if (this.includeTypeAtReturn === false) { - this.retVals = this.retVals.map(t => t === "true" || t === "false" ? t : ""); + this.retVals = this.retVals.map((t) => t === "true" || t === "false" ? t : ""); } this.generateFromTemplate(lines, this.returnTemplate, this.retVals); |