1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 12:23:08 +03:00
semantic/test/fixtures/cli/parse-trees.json
2018-06-01 11:44:03 -07:00

235 lines
5.0 KiB
JSON

{
"trees": [
{
"tree":
{
"term": "Statements",
"children": [
{
"term": "LowAnd",
"children": [
{
"term": "Send",
"sendArgs": [],
"sendBlock": null,
"sendReceiver": null,
"sendSelector":
{
"term": "Identifier",
"name": "foo",
"sourceRange": [0, 3],
"sourceSpan":
{
"start": [1, 1],
"end": [1, 4]
}
},
"sourceRange": [0, 3],
"sourceSpan":
{
"start": [1, 1],
"end": [1, 4]
}
},
{
"term": "Send",
"sendArgs": [],
"sendBlock": null,
"sendReceiver": null,
"sendSelector":
{
"term": "Identifier",
"name": "bar",
"sourceRange": [8, 11],
"sourceSpan":
{
"start": [1, 9],
"end": [1, 12]
}
},
"sourceRange": [8, 11],
"sourceSpan":
{
"start": [1, 9],
"end": [1, 12]
}
}],
"sourceRange": [0, 11],
"sourceSpan":
{
"start": [1, 1],
"end": [1, 12]
}
}],
"sourceRange": [0, 12],
"sourceSpan":
{
"start": [1, 1],
"end": [2, 1]
}
},
"path": "test/fixtures/ruby/corpus/and-or.A.rb",
"language": "Ruby"
},
{
"tree":
{
"term": "Statements",
"children": [
{
"term": "LowOr",
"children": [
{
"term": "Send",
"sendArgs": [],
"sendBlock": null,
"sendReceiver": null,
"sendSelector":
{
"term": "Identifier",
"name": "foo",
"sourceRange": [0, 3],
"sourceSpan":
{
"start": [1, 1],
"end": [1, 4]
}
},
"sourceRange": [0, 3],
"sourceSpan":
{
"start": [1, 1],
"end": [1, 4]
}
},
{
"term": "Send",
"sendArgs": [],
"sendBlock": null,
"sendReceiver": null,
"sendSelector":
{
"term": "Identifier",
"name": "bar",
"sourceRange": [7, 10],
"sourceSpan":
{
"start": [1, 8],
"end": [1, 11]
}
},
"sourceRange": [7, 10],
"sourceSpan":
{
"start": [1, 8],
"end": [1, 11]
}
}],
"sourceRange": [0, 10],
"sourceSpan":
{
"start": [1, 1],
"end": [1, 11]
}
},
{
"term": "LowAnd",
"children": [
{
"term": "LowOr",
"children": [
{
"term": "Send",
"sendArgs": [],
"sendBlock": null,
"sendReceiver": null,
"sendSelector":
{
"term": "Identifier",
"name": "a",
"sourceRange": [11, 12],
"sourceSpan":
{
"start": [2, 1],
"end": [2, 2]
}
},
"sourceRange": [11, 12],
"sourceSpan":
{
"start": [2, 1],
"end": [2, 2]
}
},
{
"term": "Send",
"sendArgs": [],
"sendBlock": null,
"sendReceiver": null,
"sendSelector":
{
"term": "Identifier",
"name": "b",
"sourceRange": [16, 17],
"sourceSpan":
{
"start": [2, 6],
"end": [2, 7]
}
},
"sourceRange": [16, 17],
"sourceSpan":
{
"start": [2, 6],
"end": [2, 7]
}
}],
"sourceRange": [11, 17],
"sourceSpan":
{
"start": [2, 1],
"end": [2, 7]
}
},
{
"term": "Send",
"sendArgs": [],
"sendBlock": null,
"sendReceiver": null,
"sendSelector":
{
"term": "Identifier",
"name": "c",
"sourceRange": [22, 23],
"sourceSpan":
{
"start": [2, 12],
"end": [2, 13]
}
},
"sourceRange": [22, 23],
"sourceSpan":
{
"start": [2, 12],
"end": [2, 13]
}
}],
"sourceRange": [11, 23],
"sourceSpan":
{
"start": [2, 1],
"end": [2, 13]
}
}],
"sourceRange": [0, 24],
"sourceSpan":
{
"start": [1, 1],
"end": [3, 1]
}
},
"path": "test/fixtures/ruby/corpus/and-or.B.rb",
"language": "Ruby"
}]
}