[js-experimental] Add the ability to parse the '::' operator in Semgrep for javascript #4416
Labels
lang:javascript
lang-nonstandard-syntax
a request to support syntax that's not an official feature of the language at this time.
parsing
Requires a fix in a parser, typically a tree-sitter or menhir grammar.
priority:medium
Is your feature request related to a problem? Please describe:
Semgrep currently does not support parsing for the '::' operation in javascript. An example can be found in the following error and code snippet below in the additional context.
Describe the solution you'd like:
It would be nice to add the ability to parse this to help with faster code writing as well as keeping up with shorthand ways of coding a certain operation.
Describe alternatives you've considered:
The only alternative is to revert back to using the bind() operation which is the longhand for that '::' operator.
Additional context:
Error:
Code snippet that it is faulty on:
The text was updated successfully, but these errors were encountered: