Skip to content

Commit 606601b

Browse files
committed
Fixed TypeScript.declarationEmitGetAccessorFunctionTime having a wrong value
1 parent cbf4eda commit 606601b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/compiler/declarationEmitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ module TypeScript {
763763

764764
var start = new Date().getTime();
765765
var accessors = PullHelpers.getGetterAndSetterFunction(funcDecl, this.semanticInfoChain);
766-
TypeScript.declarationEmitGetAccessorFunctionTime += new Date().getTime();
766+
TypeScript.declarationEmitGetAccessorFunctionTime += new Date().getTime() - start;
767767

768768
var comments: Comment[] = [];
769769
if (accessors.getter) {
@@ -787,7 +787,7 @@ module TypeScript {
787787
private emitMemberAccessorDeclaration(funcDecl: ISyntaxElement, modifiers: ISyntaxToken[], name: ISyntaxToken) {
788788
var start = new Date().getTime();
789789
var accessorSymbol = PullHelpers.getAccessorSymbol(funcDecl, this.semanticInfoChain);
790-
TypeScript.declarationEmitGetAccessorFunctionTime += new Date().getTime();
790+
TypeScript.declarationEmitGetAccessorFunctionTime += new Date().getTime() - start;
791791

792792
if (funcDecl.kind() === SyntaxKind.SetAccessor && accessorSymbol.getGetter()) {
793793
// Setter is being used to emit the type info.

0 commit comments

Comments
 (0)