mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
44 lines
920 B
JSON
44 lines
920 B
JSON
{
|
|
"loopType": "ForEach",
|
|
"varName": {
|
|
"type": "Identifier",
|
|
"name": "color"
|
|
},
|
|
"in": {
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"left": {
|
|
"type": "ObjectExpression",
|
|
"properties": [
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "a"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"name": "a"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"operator": "in",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "test"
|
|
}
|
|
},
|
|
"operator": "|",
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |