Slide 10
Slide 10 text
AST
{
type: "Program",
body: [{
type: "VariableDeclaration"
kind: "var",
declarations: [{
type: "VariableDeclarator",
id: { type: "Identifier", name: "foo" },
init: {
type: “FunctionExpression",
id: { type: “Identifier”, name: “foo” },
params: [],
body: [{
type: "BlockStatement",
body: [{
type: "ReturnStatement",
argument: { type: "Identifier", name: "bar" }
}]
}]
}
}]
}]
}