Skip to content

Commit

Permalink
refix test
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei committed Sep 28, 2024
1 parent 95e1395 commit 897505d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/goTranspiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ export class GoTranspiler extends BaseTranspiler {
return struct + "\n" + classMethods;
}

printPropertyAccessModifiers (node) {
return "";
}

printMethodDeclaration(node, identation) {

const className = node.parent.name.escapedText;
Expand Down
3 changes: 0 additions & 3 deletions tests/integration/source/transpilable.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

class Second {

classProp: string = "classProp";

public stringifyNumber(arg: number) {
return arg.toString();
}
Expand Down Expand Up @@ -32,7 +30,6 @@ class Test {

var instance = new Second();
console.log(instance.stringifyNumber(4)); // should print 4
console.log(instance.classProp); // should print "classProp"

const arr = [1,2,3,4];

Expand Down

0 comments on commit 897505d

Please sign in to comment.