Let’s shake some trees!
Let’s shake some trees!
Commons
Models Services Components Helpers
“Inheritance is pure evil”
We need to shake trees!
“I’ll find out what you need”
“You tell me what you need”
The tools we need
Broccoli funnel
Recast
First pass
Included: [‘model1’]
Model1+
Model2
+
Model3
Recast
Second passIncluded: [‘model1’, ‘model2’]
Model1+
Model2
Recast
.parse()
Modify
Source
.print()
AST
Abstract Syntax Trees
“In computer science, an abstract syntax tree (AST), or just syntax tree, is a tree representation of the abstract syntactic structure of
source code written in a programming language.”
Demo