From bee8c373b310956f035aec23c2f5d8fe14707fbb Mon Sep 17 00:00:00 2001 From: houhaoyu Date: Mon, 21 Mar 2022 16:00:21 +0800 Subject: [PATCH] houhaoyu@huawei.com escape error accumulated Signed-off-by: houhaoyu Change-Id: Ifdb3c1d315191d41c85c363dd03de696d702c764 --- compiler/src/compile_info.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/src/compile_info.ts b/compiler/src/compile_info.ts index afa50cb..6940eea 100644 --- a/compiler/src/compile_info.ts +++ b/compiler/src/compile_info.ts @@ -226,6 +226,13 @@ export class ResultStates { } else { console.info(this.blue, 'COMPILE RESULT:SUCCESS ', this.reset); } + this.clearCount(); + } + + private clearCount(): void { + this.mErrorCount = 0; + this.warningCount = 0; + this.noteCount = 0; } private printWarning(): void {