[][src]Function rslint_core::util::constructor_or_call_with_callee

pub fn constructor_or_call_with_callee(
    node: impl Borrow<SyntaxNode>,
    name: impl AsRef<str>
) -> bool

Check if this is either a Call expression with the callee of name, or if this is a New expression with a callee of name. e.g. Boolean() or new Boolean()