CodeQL library for JavaScript
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()