From b7fd871c3664a0b60bf804b27795a5278ef6ae0f Mon Sep 17 00:00:00 2001 From: Julian Berkner Date: Tue, 21 May 2019 15:55:27 +0200 Subject: [PATCH] Fix the wrong negation of the instanceof check --- typeScriptCodeGenerator.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/typeScriptCodeGenerator.js b/typeScriptCodeGenerator.js index 49e7603..48a5fa4 100755 --- a/typeScriptCodeGenerator.js +++ b/typeScriptCodeGenerator.js @@ -546,7 +546,7 @@ class TypeScriptCodeGenerator { this.writeDoc(codeWriter, doc, options); // modifiers - if (!elem._parent instanceof type.UMLInterface) { + if (!(elem._parent instanceof type.UMLInterface)) { var _modifiers = this.getModifiers(elem); if (_modifiers.length > 0) { terms.push(_modifiers.join(" ")); @@ -674,7 +674,7 @@ class TypeScriptCodeGenerator { // modifiers console.log('writemember', 'elem', elem, elem._parent instanceof type.UMLInterface); - if (!elem._parent instanceof type.UMLInterface) { + if (!(elem._parent instanceof type.UMLInterface)) { var _modifiers = this.getModifiers(elem); if (_modifiers.length > 0) { terms.push(_modifiers.join(" ")); @@ -830,4 +830,3 @@ function generate(baseModel, basePath, options) { } exports.generate = generate; -