CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.13 (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()