You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
Cannot read property '1' of null
TypeError: Cannot read property '1' of null
at isFunctionInvocation (/usr/local/lib/node_modules/@willowtreeapps/wist/lib/rules/no-private-func.js:11:42)
at Linter.expression:exit (/usr/local/lib/node_modules/@willowtreeapps/wist/lib/rules/no-private-func.js:37:22)
at emitOne (events.js:96:13)
at Linter.emit (events.js:191:7)
at BrightScriptEventListener.exitExpression (/usr/local/lib/node_modules/@willowtreeapps/wist/parser/BrightScriptEventGenerator.js:261:22)
at ExpressionContext.exitRule (/usr/local/lib/node_modules/@willowtreeapps/wist/parser/antlr/BrightScriptParser.js:5439:18)
at ParseTreeWalker.exitRule (/usr/local/lib/node_modules/antlr4/tree/Tree.js:212:6)
at ParseTreeWalker.walk (/usr/local/lib/node_modules/antlr4/tree/Tree.js:195:8)
at ParseTreeWalker.walk (/usr/local/lib/node_modules/antlr4/tree/Tree.js:193:9)
at ParseTreeWalker.walk (/usr/local/lib/node_modules/antlr4/tree/Tree.js:193:9)
Sample File:
function sampleFunction() as object
if GetGlobalAA().user = invalid then
user = {
_name : "",
}
GetGlobalAA()["user"] = user
end if
return invalid
end function
Issue with node.children being null when using "no-private-func" rule.
wist/lib/rules/no-private-func.js
Line 11 in d62291f
Sample File:
The dangling comma in
_name : "",
Maybe we can add new rules for trailing commas?
https://eslint.org/docs/rules/comma-dangle
The text was updated successfully, but these errors were encountered: