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

Member predicate API::Node::getADecoratedMember

Gets any method, field, or accessor that has this value as a decorator.

In the case of an accessor, this gets the return value of a getter, or argument to a setter.

For example:

import { D } from "foo";

class C {
  // moduleImport("foo").getMember("D").getADecoratedMember()
  @D m1() {}
  @D f;
  @D get g() { return this.x; }

  // moduleImport("foo").getMember("D").getReturn().getADecoratedMember()
  @D() m2() {}
  @D() f2;
  @D() get g2() { return this.x; }
Node getADecoratedMember()