Created
April 7, 2015 21:13
-
-
Save aslushnikov/9f2aa0d3a9141741aafa to your computer and use it in GitHub Desktop.
V8 AST example 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test(a, b, c) { return 1; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "FunctionLiteral", | |
"position": 0, | |
"declarations": [ | |
{ | |
"type": "FunctionDeclaration", | |
"position": 0, | |
"fun": { | |
"type": "FunctionLiteral", | |
"position": 0, | |
"declarations": [], | |
"body": [ | |
{ | |
"type": "ReturnStatement", | |
"position": 25, | |
"expression": { | |
"type": "Literal", | |
"position": 32 | |
} | |
} | |
] | |
} | |
} | |
], | |
"body": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment