Skip to content

Instantly share code, notes, and snippets.

@simonpai
Created July 29, 2014 08:52
Show Gist options
  • Select an option

  • Save simonpai/65f1e0988561a63ab2e8 to your computer and use it in GitHub Desktop.

Select an option

Save simonpai/65f1e0988561a63ab2e8 to your computer and use it in GitHub Desktop.
Quire analysis AST type counts.
time cost: 6509ms
{
CompilationUnit: 278,
ImportDirective: 940,
SimpleStringLiteral: 6238,
SimpleIdentifier: 90616,
FunctionDeclaration: 1006,
TypeName: 19521,
FunctionExpression: 3160,
FormalParameterList: 5409,
SimpleFormalParameter: 7252,
TypeArgumentList: 2787,
BlockFunctionBody: 3366,
Block: 4521,
ExpressionStatement: 6734,
AssignmentExpression: 2239,
IndexExpression: 2024,
PrefixedIdentifier: 6243,
InstanceCreationExpression: 1797,
ConstructorName: 1797,
ArgumentList: 13162,
IfStatement: 2375,
BinaryExpression: 3741,
NullLiteral: 2381,
ThrowExpression: 170,
MethodInvocation: 11132,
StringInterpolation: 670,
InterpolationString: 1660,
InterpolationExpression: 990,
PrefixExpression: 484,
VariableDeclarationStatement: 2360,
VariableDeclarationList: 4210,
VariableDeclaration: 4924,
BooleanLiteral: 761,
ForEachStatement: 193,
DeclaredIdentifier: 193,
NamedExpression: 1314,
Label: 1316,
ListLiteral: 919,
LibraryDirective: 104,
LibraryIdentifier: 277,
ShowCombinator: 342,
TopLevelVariableDeclaration: 670,
IntegerLiteral: 1835,
ClassDeclaration: 388,
Comment: 2233,
FieldDeclaration: 1124,
ConstructorDeclaration: 391,
FieldFormalParameter: 279,
EmptyFunctionBody: 303,
TryStatement: 41,
CatchClause: 41,
ReturnStatement: 2126,
HideCombinator: 7,
PartDirective: 177,
CommentReference: 1197,
DefaultFormalParameter: 840,
FunctionTypedFormalParameter: 191,
ExpressionFunctionBody: 2031,
CascadeExpression: 328,
PropertyAccess: 1064,
FunctionTypeAlias: 46,
ConditionalExpression: 546,
ParenthesizedExpression: 274,
AssertStatement: 89,
AsExpression: 120,
TypeParameterList: 74,
TypeParameter: 87,
ExtendsClause: 235,
ConstructorFieldInitializer: 132,
ThisExpression: 387,
MethodDeclaration: 2149,
RedirectingConstructorInvocation: 23,
IsExpression: 254,
SuperConstructorInvocation: 200,
MapLiteral: 358,
MapLiteralEntry: 1328,
ImplementsClause: 43,
Annotation: 408,
PartOfDirective: 173,
PostfixExpression: 57,
FunctionDeclarationStatement: 24,
SuperExpression: 150,
DoubleLiteral: 14,
SwitchStatement: 83,
SwitchCase: 249,
BreakStatement: 167,
ForStatement: 74,
WithClause: 14,
WhileStatement: 18,
EmptyStatement: 14,
SwitchDefault: 20,
ContinueStatement: 33,
AdjacentStrings: 50,
FunctionExpressionInvocation: 10,
ExportDirective: 5,
LabeledStatement: 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment