CodeQL library for JavaScript
Search

Member predicate API::Node::getADecoratedClass

Gets any class that has this value as a decorator.

For example:

import { D } from "foo";

// moduleImport("foo").getMember("D").getADecoratedClass()
@D
class C1 {}

// moduleImport("foo").getMember("D").getReturn().getADecoratedClass()
@D()
class C2 {}
Node getADecoratedClass()