CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.2-dev (changelog, source)
Search

Member predicate API::Node::getADecoratedParameter

Gets any parameter that has this value as a decorator.

For example:

import { D } from "foo";

class C {
  method(
    // moduleImport("foo").getMember("D").getADecoratedParameter()
    @D
    param1,
    // moduleImport("foo").getMember("D").getReturn().getADecoratedParameter()
    @D()
    param2
 ) {}
}
Node getADecoratedParameter()