mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
51 lines
1.1 KiB
JSON
51 lines
1.1 KiB
JSON
{
|
|
"loopType": "For",
|
|
"init": {
|
|
"type": "Vars",
|
|
"kind": "var",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "i"
|
|
},
|
|
"init": {
|
|
"type": "Literal",
|
|
"value": 0
|
|
}
|
|
}
|
|
],
|
|
"body": []
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "i"
|
|
},
|
|
"operator": "<",
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "foo"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
"update": {
|
|
"type": "UpdateExpression",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "i"
|
|
},
|
|
"operator": "++",
|
|
"prefix": false
|
|
}
|
|
}
|