diff --git a/src/compiler/transformer.ts b/src/compiler/transformer.ts index 1d1895e6ace87..f885f8eb348e6 100644 --- a/src/compiler/transformer.ts +++ b/src/compiler/transformer.ts @@ -33,7 +33,7 @@ namespace ts { addRange(transformers, customTransformers && customTransformers.before); transformers.push(transformTypeScript); - transformers.push(transformClassProperties); + transformers.push(transformClassFields); if (jsx === JsxEmit.React) { transformers.push(transformJsx); diff --git a/src/compiler/transformers/classFields.ts b/src/compiler/transformers/classFields.ts index 659908aef16d4..575e1d1334696 100644 --- a/src/compiler/transformers/classFields.ts +++ b/src/compiler/transformers/classFields.ts @@ -14,7 +14,7 @@ namespace ts { * (where the declarations get elided and initializers are transformed as assignments in the constructor). * Eventually, this transform will change to the ECMAScript semantics (with Object.defineProperty). */ - export function transformClassProperties(context: TransformationContext) { + export function transformClassFields(context: TransformationContext) { const { hoistVariableDeclaration, endLexicalEnvironment,