diff --git a/build/lib/tslint/allowAsyncRule.js b/build/lib/tslint/allowAsyncRule.js index cad8e31c01d1b6d9bafdef82354f520c5f163060..1e4943f795a510422248eb18c7c143144925d8d5 100644 --- a/build/lib/tslint/allowAsyncRule.js +++ b/build/lib/tslint/allowAsyncRule.js @@ -47,7 +47,7 @@ var AsyncRuleWalker = (function (_super) { return; } var message = "You are not allowed to use async function in this layer. Allowed layers are: [" + this.allowed + "]"; - this.addFailure(this.createFailure(node.getStart(), node.getWidth(), message)); + this.addFailureAtNode(node, message); }; return AsyncRuleWalker; }(Lint.RuleWalker)); diff --git a/build/lib/tslint/allowAsyncRule.ts b/build/lib/tslint/allowAsyncRule.ts index 95e79516c2faf63d3b3fa4320e74235962e85a64..6506929cb9b7f4cbdf1fd64b1bd37fd08e2a959d 100644 --- a/build/lib/tslint/allowAsyncRule.ts +++ b/build/lib/tslint/allowAsyncRule.ts @@ -42,6 +42,6 @@ class AsyncRuleWalker extends Lint.RuleWalker { } const message = `You are not allowed to use async function in this layer. Allowed layers are: [${this.allowed}]`; - this.addFailure(this.createFailure(node.getStart(), node.getWidth(), message)); + this.addFailureAtNode(node, message); } }