Skip to content

Commit

Permalink
Add position information to all syntax fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
leamingrad committed May 31, 2024
1 parent e10c19f commit 00ec1ca
Show file tree
Hide file tree
Showing 62 changed files with 9,845 additions and 895 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,35 @@
"span": {
"type": "Span",
"start": 13,
"end": 13
"end": 13,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 13
},
"end_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 13
}
}
}
],
"content": "err1 = { foo.23 }\n",
"span": {
"type": "Span",
"start": 0,
"end": 18
"end": 18,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 1,
"column_index": 0
}
}
},
{
Expand All @@ -38,21 +58,51 @@
"span": {
"type": "Span",
"start": 31,
"end": 31
"end": 31,
"start_position": {
"type": "SourcePosition",
"row_index": 1,
"column_index": 13
},
"end_position": {
"type": "SourcePosition",
"row_index": 1,
"column_index": 13
}
}
}
],
"content": "err2 = { foo. }\n",
"span": {
"type": "Span",
"start": 18,
"end": 34
"end": 34,
"start_position": {
"type": "SourcePosition",
"row_index": 1,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 0
}
}
}
],
"span": {
"type": "Span",
"start": 0,
"end": 34
"end": 34,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 1
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,51 @@
"span": {
"type": "Span",
"start": 23,
"end": 23
"end": 23,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 23
},
"end_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 23
}
}
}
],
"content": "err1 = { -brand.gender }\n",
"span": {
"type": "Span",
"start": 0,
"end": 25
"end": 25,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 1,
"column_index": 0
}
}
}
],
"span": {
"type": "Span",
"start": 0,
"end": 25
"end": 25,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 1,
"column_index": 1
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,51 @@
"span": {
"type": "Span",
"start": 21,
"end": 21
"end": 21,
"start_position": {
"type": "SourcePosition",
"row_index": 1,
"column_index": 22
},
"end_position": {
"type": "SourcePosition",
"row_index": 1,
"column_index": 22
}
}
}
],
"content": "err1 =\n { foo.bar ->\n [1] One\n *[2] Two\n }\n",
"span": {
"type": "Span",
"start": 0,
"end": 62
"end": 62,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 6,
"column_index": 0
}
}
}
],
"span": {
"type": "Span",
"start": 0,
"end": 62
"end": 62,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 6,
"column_index": 1
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@
"span": {
"type": "Span",
"start": 0,
"end": 3
"end": 3,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 3
}
}
},
"value": {
Expand All @@ -21,14 +31,34 @@
"span": {
"type": "Span",
"start": 6,
"end": 11
"end": 11,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 6
},
"end_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 11
}
}
}
],
"span": {
"type": "Span",
"start": 6,
"end": 11
"end": 11,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 6
},
"end_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 11
}
}
},
"attributes": [
Expand All @@ -40,7 +70,17 @@
"span": {
"type": "Span",
"start": 13,
"end": 17
"end": 17,
"start_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 1
},
"end_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 5
}
}
},
"value": {
Expand All @@ -52,34 +92,84 @@
"span": {
"type": "Span",
"start": 20,
"end": 27
"end": 27,
"start_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 8
},
"end_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 15
}
}
}
],
"span": {
"type": "Span",
"start": 20,
"end": 27
"end": 27,
"start_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 8
},
"end_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 15
}
}
},
"span": {
"type": "Span",
"start": 12,
"end": 27
"end": 27,
"start_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 15
}
}
}
],
"comment": null,
"span": {
"type": "Span",
"start": 0,
"end": 27
"end": 27,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 2,
"column_index": 15
}
}
}
],
"span": {
"type": "Span",
"start": 0,
"end": 28
"end": 28,
"start_position": {
"type": "SourcePosition",
"row_index": 0,
"column_index": 0
},
"end_position": {
"type": "SourcePosition",
"row_index": 3,
"column_index": 0
}
}
}
Loading

0 comments on commit 00ec1ca

Please sign in to comment.