fixtures: exclude *.parse.json from git

This commit is contained in:
mappu 2020-04-05 16:37:21 +12:00
parent c89f3232ae
commit 1206881bec
3 changed files with 3 additions and 1605 deletions

3
.gitignore vendored
View File

@ -1,4 +1,7 @@
# Binaries
php2go
# Generated files during testing
fixtures/**.json
# ..

File diff suppressed because it is too large Load Diff

View File

@ -1,437 +0,0 @@
{
"type": "*node.Root",
"position": {
"startPos": 44,
"endPos": 254,
"startLine": 4,
"endLine": 21
},
"Stmts": [
{
"type": "*stmt.For",
"position": {
"startPos": 44,
"endPos": 186,
"startLine": 4,
"endLine": 18
},
"Init": [
{
"type": "*assign.Assign",
"position": {
"startPos": 48,
"endPos": 54,
"startLine": 4,
"endLine": 4
},
"Variable": {
"type": "*expr.Variable",
"position": {
"startPos": 48,
"endPos": 50,
"startLine": 4,
"endLine": 4
},
"VarName": {
"type": "*node.Identifier",
"position": {
"startPos": 48,
"endPos": 50,
"startLine": 4,
"endLine": 4
},
"Value": "i"
}
},
"Expression": {
"type": "*scalar.Lnumber",
"position": {
"startPos": 53,
"endPos": 54,
"startLine": 4,
"endLine": 4
},
"Value": "0"
}
}
],
"Cond": [
{
"type": "*binary.Smaller",
"position": {
"startPos": 56,
"endPos": 62,
"startLine": 4,
"endLine": 4
},
"Left": {
"type": "*expr.Variable",
"position": {
"startPos": 56,
"endPos": 58,
"startLine": 4,
"endLine": 4
},
"VarName": {
"type": "*node.Identifier",
"position": {
"startPos": 56,
"endPos": 58,
"startLine": 4,
"endLine": 4
},
"Value": "i"
}
},
"Right": {
"type": "*scalar.Lnumber",
"position": {
"startPos": 61,
"endPos": 62,
"startLine": 4,
"endLine": 4
},
"Value": "3"
}
}
],
"Loop": [
{
"type": "*expr.PreInc",
"position": {
"startPos": 64,
"endPos": 68,
"startLine": 4,
"endLine": 4
},
"Variable": {
"type": "*expr.Variable",
"position": {
"startPos": 66,
"endPos": 68,
"startLine": 4,
"endLine": 4
},
"VarName": {
"type": "*node.Identifier",
"position": {
"startPos": 66,
"endPos": 68,
"startLine": 4,
"endLine": 4
},
"Value": "i"
}
}
}
],
"Stmt": {
"type": "*stmt.StmtList",
"position": {
"startPos": 70,
"endPos": 186,
"startLine": 4,
"endLine": 18
},
"Stmts": [
{
"type": "*stmt.Foreach",
"position": {
"startPos": 75,
"endPos": 105,
"startLine": 6,
"endLine": 7
},
"Expr": {
"type": "*expr.Variable",
"position": {
"startPos": 83,
"endPos": 87,
"startLine": 6,
"endLine": 6
},
"VarName": {
"type": "*node.Identifier",
"position": {
"startPos": 83,
"endPos": 87,
"startLine": 6,
"endLine": 6
},
"Value": "foo"
}
},
"Key": {
"type": "*expr.Variable",
"position": {
"startPos": 91,
"endPos": 93,
"startLine": 6,
"endLine": 6
},
"VarName": {
"type": "*node.Identifier",
"position": {
"startPos": 91,
"endPos": 93,
"startLine": 6,
"endLine": 6
},
"Value": "k"
}
},
"Variable": {
"type": "*expr.Variable",
"position": {
"startPos": 97,
"endPos": 99,
"startLine": 6,
"endLine": 6
},
"VarName": {
"type": "*node.Identifier",
"position": {
"startPos": 97,
"endPos": 99,
"startLine": 6,
"endLine": 6
},
"Value": "v"
}
},
"Stmt": {
"type": "*stmt.StmtList",
"position": {
"startPos": 101,
"endPos": 105,
"startLine": 6,
"endLine": 7
},
"Stmts": [
]
}
} {
"type": "*stmt.Foreach",
"position": {
"startPos": 109,
"endPos": 135,
"startLine": 9,
"endLine": 10
},
"Expr": {
"type": "*expr.Variable",
"position": {
"startPos": 117,
"endPos": 122,
"startLine": 9,
"endLine": 9
},
"VarName": {
"type": "*node.Identifier",
"position": {
"startPos": 117,
"endPos": 122,
"startLine": 9,
"endLine": 9
},
"Value": "foo2"
}
},
"Variable": {
"type": "*expr.Variable",
"position": {
"startPos": 126,
"endPos": 129,
"startLine": 9,
"endLine": 9
},
"VarName": {
"type": "*node.Identifier",
"position": {
"startPos": 126,
"endPos": 129,
"startLine": 9,
"endLine": 9
},
"Value": "v2"
}
},
"Stmt": {
"type": "*stmt.StmtList",
"position": {
"startPos": 131,
"endPos": 135,
"startLine": 9,
"endLine": 10
},
"Stmts": [
]
}
} {
"type": "*stmt.While",
"position": {
"startPos": 139,
"endPos": 155,
"startLine": 12,
"endLine": 13
},
"Cond": {
"type": "*expr.ConstFetch",
"position": {
"startPos": 145,
"endPos": 149,
"startLine": 12,
"endLine": 12
},
"Constant": {
"type": "*name.Name",
"position": {
"startPos": 145,
"endPos": 149,
"startLine": 12,
"endLine": 12
},
"Parts": [
{
"type": "*name.NamePart",
"position": {
"startPos": 145,
"endPos": 149,
"startLine": 12,
"endLine": 12
},
"Value": "true"
}
]
}
},
"Stmt": {
"type": "*stmt.StmtList",
"position": {
"startPos": 151,
"endPos": 155,
"startLine": 12,
"endLine": 13
},
"Stmts": [
]
}
} {
"type": "*stmt.Do",
"position": {
"startPos": 159,
"endPos": 182,
"startLine": 15,
"endLine": 16
},
"Stmt": {
"type": "*stmt.StmtList",
"position": {
"startPos": 162,
"endPos": 168,
"startLine": 15,
"endLine": 16
},
"Stmts": [
]
},
"Cond": {
"type": "*expr.ConstFetch",
"position": {
"startPos": 176,
"endPos": 180,
"startLine": 16,
"endLine": 16
},
"Constant": {
"type": "*name.Name",
"position": {
"startPos": 176,
"endPos": 180,
"startLine": 16,
"endLine": 16
},
"Parts": [
{
"type": "*name.NamePart",
"position": {
"startPos": 176,
"endPos": 180,
"startLine": 16,
"endLine": 16
},
"Value": "true"
}
]
}
}
}
]
}
},
{
"type": "*stmt.While",
"position": {
"startPos": 228,
"endPos": 254,
"startLine": 21,
"endLine": 21
},
"Cond": {
"type": "*expr.ConstFetch",
"position": {
"startPos": 235,
"endPos": 239,
"startLine": 21,
"endLine": 21
},
"Constant": {
"type": "*name.Name",
"position": {
"startPos": 235,
"endPos": 239,
"startLine": 21,
"endLine": 21
},
"Parts": [
{
"type": "*name.NamePart",
"position": {
"startPos": 235,
"endPos": 239,
"startLine": 21,
"endLine": 21
},
"Value": "true"
}
]
}
},
"Stmt": {
"type": "*stmt.Echo",
"position": {
"startPos": 241,
"endPos": 254,
"startLine": 21,
"endLine": 21
},
"Exprs": [
{
"type": "*scalar.String",
"position": {
"startPos": 246,
"endPos": 253,
"startLine": 21,
"endLine": 21
},
"Value": "\"hello\""
}
]
}
}
]
}