Skip to content

Instantly share code, notes, and snippets.

@SammyIsra
Created July 2, 2019 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SammyIsra/3bc08becf86c7d06d819dd2dddd61b6e to your computer and use it in GitHub Desktop.
Save SammyIsra/3bc08becf86c7d06d819dd2dddd61b6e to your computer and use it in GitHub Desktop.
Transformer Output AST
// Transformed AST
{
type: "Program",
body: [
{
type: "ExpressionStatement",
expression: {
type: "CallExpression",
name: {
type: "Identifier",
name: "concat"
},
params: [
{
type: "StringLiteral",
value: "Number :"
},
{
type: "CallExpression",
name: {
type: "Identifier",
name: "add"
},
params: [
{
type: "NumberLiteral",
value: "2"
},
{
type: "NumberLiteral",
value: "3"
}
]
}
]
}
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment