Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinr committed Mar 14, 2014
1 parent f697bc8 commit 33a3736
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ class NoImportsWalker extends Lint.RuleWalker {

// create a failure at the current position
this.addFailure(this.createFailure(position, node.width(), Rule.FAILURE_STRING));

// call the base version of this visitor to actually parse this node
super.visitImportDeclaration(node);
}
}
```
Expand Down Expand Up @@ -151,6 +154,9 @@ NoImportsWalker.prototype.visitImportDeclaration = function (node) {

// create a failure at the current position
this.addFailure(this.createFailure(position, node.width(), "import statement forbidden"));

// call the base version of this visitor to actually parse this node
Lint.RuleWalker.prototype.visitImportDeclaration.call(this, node);
};

exports.Rule = Rule;
Expand Down

0 comments on commit 33a3736

Please sign in to comment.