mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
58 lines
1.0 KiB
JSON
58 lines
1.0 KiB
JSON
{
|
|
"loopType": "ForEach",
|
|
"varName": {
|
|
"type": "Identifier",
|
|
"name": "color"
|
|
},
|
|
"in": {
|
|
"type": "BinaryExpression",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "a"
|
|
},
|
|
"operator": "in",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "test"
|
|
}
|
|
},
|
|
"operator": "|",
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 0
|
|
}
|
|
},
|
|
"separator": {
|
|
"type": "ConditionalExpression",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "iterator"
|
|
},
|
|
"operator": "==",
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "Literal",
|
|
"value": "foo"
|
|
},
|
|
"alternate": {
|
|
"type": "Literal",
|
|
"value": "bar"
|
|
}
|
|
},
|
|
"statusVarName": {
|
|
"type": "Identifier",
|
|
"name": "loop"
|
|
},
|
|
"iterator": {
|
|
"type": "Identifier",
|
|
"name": "myIterator"
|
|
}
|
|
} |