Skip to content

Instantly share code, notes, and snippets.

@junosuarez
Last active December 28, 2015 09:19
Show Gist options
  • Save junosuarez/7477639 to your computer and use it in GitHub Desktop.
Save junosuarez/7477639 to your computer and use it in GitHub Desktop.
A census of SpiderMonkey ParserAPI JavaScript AST node types from 101,323 JavaScript files found on my computer in `~/dev`
Identifier 43806733
MemberExpression 14468088
Literal 14114779
CallExpression 7127477
ExpressionStatement 5921583
BlockStatement 4146079
Property 3926472
AssignmentExpression 3671689
BinaryExpression 3607263
VariableDeclarator 3017127
ThisExpression 2444079
FunctionExpression 1853379
IfStatement 1784975
VariableDeclaration 1729765
LogicalExpression 1569821
ReturnStatement 1547069
UnaryExpression 1155359
ObjectExpression 1102036
ArrayExpression 1018832
ConditionalExpression 520976
NewExpression 352610
UpdateExpression 348690
FunctionDeclaration 308958
SequenceExpression 251921
ForStatement 200790
SwitchCase 158926
BreakStatement 112888
Program 97654
ThrowStatement 79662
ForInStatement 74755
WhileStatement 73631
TryStatement 64382
CatchClause 62800
EmptyStatement 44984
SwitchStatement 25791
ContinueStatement 18747
LabeledStatement 6309
DoWhileStatement 5120
WithStatement 901
DebuggerStatement 274
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment