Codiga has joined Datadog!

Read the Blog
Skip to main content

JavaScript/TypeScript Objects

AST Type mapping

An AST JavaScript specifies the type of object being processed. There is the mapping between the object type and the link to the documentation.


The following objects are valid for JavaScript AND TypeScript.

AST Rule TypeJavaScript Object
Class DefinitionClassDefinition
Function CallFunctionCall
Function DefinitionFunctionDefinition
HTML ElementHTML Element
If ConditionIfCondition
For LoopForStatement
Try BlockTryBlock
Variable DeclarationVariableDeclaration