CallExpression
CallExpression is a node in an abstract syntax tree (AST) used to represent a function or method invocation in JavaScript and related languages. It is a standard node type in ESTree, which underpins most JavaScript tooling such as Babel, ESLint, Esprima, and TypeScript’s AST representation.
Shape and fields: A CallExpression has a type field with the value "CallExpression", a callee field that
Examples: The code f(1, 2) is represented as a CallExpression where callee is the Identifier "f" and
Evaluation: When evaluated, the callee is first evaluated to a function value, each argument expression is evaluated,
Variants and related forms: CallExpression is distinct from NewExpression, which constructs a new object, and from