Skip to content

Instantly share code, notes, and snippets.

@maacl
Created January 21, 2012 21:27
Show Gist options
  • Save maacl/1654089 to your computer and use it in GitHub Desktop.
Save maacl/1654089 to your computer and use it in GitHub Desktop.
AST Paths
[
Object
id: "invoice_no"
path: Array[4]
0: "statements"
1: "1"
2: "id"
3: "original"
length: 4
__proto__: Array[0]
__proto__: Object
,
Object
id: "invoice_date"
path: Array[4]
0: "statements"
1: "3"
2: "id"
3: "original"
length: 4
__proto__: Array[0]
__proto__: Object
,
Object
id: "name"
path: Array[4]
0: "statements"
1: "5"
2: "id"
3: "original"
length: 4
__proto__: Array[0]
__proto__: Object
,
Object
id: "with"
path: Array[5]
0: "statements"
1: "7"
2: "mustache"
3: "id"
4: "original"
length: 5
__proto__: Array[0]
__proto__: Object
,
Object
id: "address"
path: Array[6]
0: "statements"
1: "7"
2: "mustache"
3: "params"
4: "0"
5: "original"
length: 6
__proto__: Array[0]
__proto__: Object
,
Object
id: "line1"
path: Array[7]
0: "statements"
1: "7"
2: "program"
3: "statements"
4: "1"
5: "id"
6: "original"
length: 7
__proto__: Array[0]
__proto__: Object
,
Object
id: "line2"
path: Array[7]
0: "statements"
1: "7"
2: "program"
3: "statements"
4: "3"
5: "id"
6: "original"
length: 7
__proto__: Array[0]
__proto__: Object
,
Object
id: "zip"
path: Array[7]
0: "statements"
1: "7"
2: "program"
3: "statements"
4: "5"
5: "id"
6: "original"
length: 7
__proto__: Array[0]
__proto__: Object
,
Object
id: "country"
path: Array[7]
0: "statements"
1: "7"
2: "program"
3: "statements"
4: "7"
5: "id"
6: "original"
length: 7
__proto__: Array[0]
__proto__: Object
,
Object
id: "each"
path: Array[5]
0: "statements"
1: "9"
2: "mustache"
3: "id"
4: "original"
length: 5
__proto__: Array[0]
__proto__: Object
,
Object
id: "skus"
path: Array[6]
0: "statements"
1: "9"
2: "mustache"
3: "params"
4: "0"
5: "original"
length: 6
__proto__: Array[0]
__proto__: Object
,
Object
id: "product"
path: Array[7]
0: "statements"
1: "9"
2: "program"
3: "statements"
4: "1"
5: "id"
6: "original"
length: 7
__proto__: Array[0]
__proto__: Object
,
Object
id: "count"
path: Array[7]
0: "statements"
1: "9"
2: "program"
3: "statements"
4: "3"
5: "id"
6: "original"
length: 7
__proto__: Array[0]
__proto__: Object
,
Object
id: "price"
path: Array[7]
0: "statements"
1: "9"
2: "program"
3: "statements"
4: "5"
5: "id"
6: "original"
length: 7
__proto__: Array[0]
__proto__: Object
,
Object
id: "if"
path: Array[5]
0: "statements"
1: "11"
2: "mustache"
3: "id"
4: "original"
length: 5
__proto__: Array[0]
__proto__: Object
,
Object
id: "warranty"
path: Array[6]
0: "statements"
1: "11"
2: "mustache"
3: "params"
4: "0"
5: "original"
length: 6
__proto__: Array[0]
__proto__: Object
,
Object
id: "warranty_period"
path: Array[7]
0: "statements"
1: "11"
2: "program"
3: "statements"
4: "1"
5: "id"
6: "original"
length: 7
__proto__: Array[0]
__proto__: Object
,
Object
id: "if"
path: Array[8]
0: "statements"
1: "11"
2: "program"
3: "statements"
4: "3"
5: "mustache"
6: "id"
7: "original"
length: 8
__proto__: Array[0]
__proto__: Object
,
Object
id: "warranty_period"
path: Array[9]
0: "statements"
1: "11"
2: "program"
3: "statements"
4: "3"
5: "mustache"
6: "params"
7: "0"
8: "original"
length: 9
__proto__: Array[0]
__proto__: Object
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment