Provides classes and predicates for the ‘js/useless-expression’ query.
Provides predicates for working with the DOM type hierarchy.
Provides classes for working with xUnit.js tests.
Holds if the expression
e should be reported as having no effect.
e appears in a syntactic context where its value is discarded.
e is of the form
e.p; and has a JSDoc comment containing a tag. In that case, it is probably meant as a declaration and shouldn’t be flagged by this query.
Holds if there exists a getter for a property called
name anywhere in the program.
c is an indirect eval call of the form
(dummy, eval)(...), where
dummy is some expression whose value is discarded, and which simply exists to prevent the call from being interpreted as a direct eval.
c is a call of the form
(dummy, e[p])(...), where
dummy is some expression whose value is discarded, and which simply exists to prevent the call from being interpreted as a method call.
Holds if evaluating
e has no side effects (except potentially allocating and initializing a new object).