CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.10-dev (changelog, source)
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()