Comparing version 1.1.2 to 1.1.3
@@ -73,5 +73,8 @@ | ||
TreeTraversing.typeOf = function (ctx) { | ||
if (!ctx) { | ||
return ''; | ||
} | ||
const className = ctx.constructor.name; | ||
const typeName = className.replace('Context', ''); | ||
return typeName[0].toLowerCase() + typeName.substring(1); | ||
@@ -78,0 +81,0 @@ }; |
@@ -40,2 +40,10 @@ const BaseChecker = require('./../base-checker'); | ||
enterAssemblyCall(ctx) { | ||
const firstChild = _.first(ctx.children); | ||
if (firstChild && typeOf(firstChild) === 'identifier') { | ||
this._trackVarUsage(firstChild); | ||
} | ||
} | ||
exitFunctionDefinition(ctx) { | ||
@@ -42,0 +50,0 @@ VarUsageScope.isActivated(ctx) && this._reportErrorsFor(ctx); |
{ | ||
"name": "solhint", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Solidity Code Linter", | ||
@@ -5,0 +5,0 @@ "main": "solhint.js", |
@@ -12,3 +12,3 @@ #!/usr/bin/env node | ||
program | ||
.version('1.1.2'); | ||
.version('1.1.3'); | ||
@@ -15,0 +15,0 @@ program |
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
3996680
19319