From faf8fdde14d313f85d9c8f571cdd5cdb0edba76f Mon Sep 17 00:00:00 2001 From: Bowen Ni Date: Tue, 9 Apr 2019 12:21:28 -0700 Subject: [PATCH] refactor(core): Fix "explicit-query-timing" failure span. (#29792) PR Close #29792 --- .../static-queries/google3/explicitQueryTimingRule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/schematics/migrations/static-queries/google3/explicitQueryTimingRule.ts b/packages/core/schematics/migrations/static-queries/google3/explicitQueryTimingRule.ts index f8c92ef135..9af92ee47e 100644 --- a/packages/core/schematics/migrations/static-queries/google3/explicitQueryTimingRule.ts +++ b/packages/core/schematics/migrations/static-queries/google3/explicitQueryTimingRule.ts @@ -60,7 +60,7 @@ export class Rule extends Rules.TypedRule { `marked as "{static: ${(timing === QueryTiming.STATIC).toString()}}".`; failures.push(new RuleFailure( - sourceFile, queryExpr.getStart(), queryExpr.getWidth(), failureMessage, this.ruleName, + sourceFile, queryExpr.getStart(), queryExpr.getEnd(), failureMessage, this.ruleName, fix)); });