Skip to content

Commit

Permalink
fix independent functionCalls
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei committed Sep 18, 2024
1 parent 0b79fb9 commit 3f5f564
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/goTranspiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const parserConfig = {
'INDEXOF_WRAPPER_CLOSE': ')',
'MOD_WRAPPER_OPEN': 'Mod(',
'MOD_WRAPPER_CLOSE': ')',
'FUNCTION_TOKEN': '',
'FUNCTION_TOKEN': 'func',
'DEFAULT_RETURN_TYPE': 'interface{}',
'BLOCK_OPENING_TOKEN': '{',
'DEFAULT_PARAMETER_TYPE': 'interface{}',
Expand Down Expand Up @@ -175,6 +175,9 @@ export class GoTranspiler extends BaseTranspiler {
return token + text + token;
}

transformFunctionNameIfNeeded(name): string {
return this.capitalize(name);
}

printPropertyDeclaration(node, identation) {
// let modifiers = this.printModifiers(node);
Expand Down Expand Up @@ -1326,7 +1329,6 @@ ${this.getIden(identation)}}`;
const newToken = this.NEW_TOKEN ? this.NEW_TOKEN + " " : "";
return newToken + expression + this.LEFT_PARENTHESIS + args + this.RIGHT_PARENTHESIS;
}

}


Expand Down

0 comments on commit 3f5f564

Please sign in to comment.