Comparing version 1.0.0 to 1.0.1
@@ -49,12 +49,14 @@ var __extends = this.__extends || function (d, b) { | ||
var references = this.languageService.getReferencesAtPosition(this.fileName, position); | ||
references.forEach(function (reference) { | ||
var referencePosition = reference.textSpan.start(); | ||
if (_this.classStartPosition <= referencePosition && referencePosition < position) { | ||
var failureString = Rule.FAILURE_STRING_PREFIX + name + Rule.FAILURE_STRING_POSTFIX; | ||
var failure = _this.createFailure(referencePosition, name.length, failureString); | ||
_this.addFailure(failure); | ||
} | ||
}); | ||
if (references) { | ||
references.forEach(function (reference) { | ||
var referencePosition = reference.textSpan.start(); | ||
if (_this.classStartPosition <= referencePosition && referencePosition < position) { | ||
var failureString = Rule.FAILURE_STRING_PREFIX + name + Rule.FAILURE_STRING_POSTFIX; | ||
var failure = _this.createFailure(referencePosition, name.length, failureString); | ||
_this.addFailure(failure); | ||
} | ||
}); | ||
} | ||
}; | ||
return NoUseBeforeDeclareWalker; | ||
})(Lint.RuleWalker); |
@@ -6,3 +6,7 @@ Change Log | ||
--- | ||
* [bug] #238 | ||
v1.0.0 | ||
--- | ||
* upgrade TypeScript compiler to 1.3 | ||
@@ -9,0 +13,0 @@ * **BREAKING CHANGES** |
{ | ||
"name": "tslint", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "a static analysis linter for TypeScript", | ||
@@ -5,0 +5,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9066395
162410