diff --git a/src/baseTranspiler.ts b/src/baseTranspiler.ts index 058c819..009dd9a 100644 --- a/src/baseTranspiler.ts +++ b/src/baseTranspiler.ts @@ -186,6 +186,7 @@ class BaseTranspiler { defaultPropertyAccess = 'public'; currentClassName = ""; + className = "undefined"; uncamelcaseIdentifiers; asyncTranspiling; diff --git a/src/goTranspiler.ts b/src/goTranspiler.ts index abe9768..8f46de3 100644 --- a/src/goTranspiler.ts +++ b/src/goTranspiler.ts @@ -70,7 +70,6 @@ export class GoTranspiler extends BaseTranspiler { binaryExpressionsWrappers; wrapThisCalls: boolean; wrapCallMethods: string[] = []; - className: string; classNameMap: { [key: string]: string }; DEFAULT_RETURN_TYPE = 'any'; diff --git a/src/rustTranspiler.ts b/src/rustTranspiler.ts index 562c1db..fc31ca2 100644 --- a/src/rustTranspiler.ts +++ b/src/rustTranspiler.ts @@ -71,7 +71,6 @@ const parserConfig = { export class RustTranspiler extends BaseTranspiler { binaryExpressionsWrappers; - className: string; methodSignatures: Record; forLoopCounter: number;