Module Classes
Provides classes for working with ECMAScript 2015 classes.
Class declarations and class expressions are modeled by (QL) classes ClassDeclaration
and ClassExpression
, respectively, which are both subclasses of ClassDefinition
.
Import path
import semmle.javascript.Classes
Imports
javascript | Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML. |
Classes
AccessorMethodDeclaration | An accessor method declaration in a class or interface, either a concrete definition or a signature without a body. |
AccessorMethodDefinition | A concrete accessor method definition in a class, that is, an accessor method with a function body. |
AccessorMethodSignature | An accessor method signature declared in a class or interface, that is, an accessor method without a function body. |
CallSignature | A call signature declared in an interface. |
ClassDeclScope | A scope induced by a class declaration with type parameters. |
ClassDeclStmt | A class declaration statement. |
ClassDefinition | An ECMAScript 2015 or TypeScript class definition, that is, either a class declaration statement or a class expression. |
ClassExpr | A class expression. |
ClassExprScope | A scope induced by a named class expression or class expression with type parameters. |
ClassOrInterface | An ECMAScript 2015/TypeScript class definition or a TypeScript interface definition, including both declarations and expressions. |
ConstructorCallSignature | A constructor call signature declared in an interface. |
ConstructorDeclaration | A constructor declaration in a class, either a concrete definition or a signature without a body. |
ConstructorDefinition | The concrete constructor definition of a class, possibly a synthetic constructor if the class did not declare any constructors. |
ConstructorSignature | A constructor signature declared in a class, that is, a constructor without a function body. |
FieldDeclaration | A field declaration in a class or interface, either a concrete definition or an abstract or ambient field signature. |
FieldDefinition | A concrete field definition in a class. |
FieldSignature | A field signature declared in a class or interface, that is, an abstract or ambient field declaration. |
FunctionCallSignature | A function call signature declared in an interface. |
GetterMethodDeclaration | A getter method declaration in a class or interface, either a concrete definition or a signature without a function body. |
GetterMethodDefinition | A concrete getter method definition in a class, that is, a getter method with a function body. |
GetterMethodSignature | A getter method signature declared in a class or interface, that is, a getter method without a function body. |
IndexSignature | An index signature declared in an interface. |
MemberDeclaration | A member declaration in a class or interface, that is, either a method declaration or a field declaration. |
MemberDefinition | A concrete member of a class, that is, a non-abstract, non-ambient field or method with a body. |
MemberSignature | A member signature declared in a class or interface, that is, an abstract or ambient field or method without a function body. |
MethodDeclaration | A method declaration in a class or interface, either a concrete definition or a signature without a body. |
MethodDefinition | A concrete method definition in a class. |
MethodSignature | A method signature declared in a class or interface, that is, a method without a function body. |
NewTargetExpr | A |
ParameterField | A field induced by an initializing constructor parameter. |
SetterMethodDeclaration | A setter method declaration in a class or interface, either a concrete definition or a signature without a body. |
SetterMethodDefinition | A concrete setter method definition in a class, that is, a setter method with a function body |
SetterMethodSignature | A setter method signature declared in a class or interface, that is, a setter method without a function body. |
StaticInitializer | A static initializer in a class. |
SuperCall | A |
SuperExpr | A |
SuperPropAccess | A property access on |
SyntheticConstructor | A function generated by the extractor to implement a synthetic default constructor. |