mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The text for tok::kw_struct, and similar, are always known. Save space by not serializing them.
149 lines
2.7 KiB
JSON
149 lines
2.7 KiB
JSON
[
|
|
{
|
|
"kind": "UnknownDecl",
|
|
"layout": [
|
|
{
|
|
"tokenKind": {
|
|
"kind": "kw_struct"
|
|
},
|
|
"leadingTrivia": [
|
|
{
|
|
"kind": "LineComment",
|
|
"value": "\/\/ RUN: %swift-syntax-test -input-source-filename %s -serialize-raw-tree > %t"
|
|
},
|
|
{
|
|
"kind": "Newline",
|
|
"value": 1
|
|
},
|
|
{
|
|
"kind": "LineComment",
|
|
"value": "\/\/ RUN: diff %t %S\/Inputs\/serialize_multiple_decls.json"
|
|
},
|
|
{
|
|
"kind": "Newline",
|
|
"value": 2
|
|
}
|
|
],
|
|
"trailingTrivia": [
|
|
{
|
|
"kind": "Space",
|
|
"value": 1
|
|
}
|
|
],
|
|
"presence": "Present"
|
|
},
|
|
{
|
|
"tokenKind": {
|
|
"kind": "identifier",
|
|
"text": "A"
|
|
},
|
|
"leadingTrivia": [
|
|
|
|
],
|
|
"trailingTrivia": [
|
|
{
|
|
"kind": "Space",
|
|
"value": 1
|
|
}
|
|
],
|
|
"presence": "Present"
|
|
},
|
|
{
|
|
"tokenKind": {
|
|
"kind": "l_brace"
|
|
},
|
|
"leadingTrivia": [
|
|
|
|
],
|
|
"trailingTrivia": [
|
|
|
|
],
|
|
"presence": "Present"
|
|
},
|
|
{
|
|
"tokenKind": {
|
|
"kind": "r_brace"
|
|
},
|
|
"leadingTrivia": [
|
|
{
|
|
"kind": "Newline",
|
|
"value": 1
|
|
}
|
|
],
|
|
"trailingTrivia": [
|
|
|
|
],
|
|
"presence": "Present"
|
|
}
|
|
],
|
|
"presence": "Present"
|
|
},
|
|
{
|
|
"kind": "UnknownDecl",
|
|
"layout": [
|
|
{
|
|
"tokenKind": {
|
|
"kind": "kw_struct"
|
|
},
|
|
"leadingTrivia": [
|
|
{
|
|
"kind": "Newline",
|
|
"value": 2
|
|
}
|
|
],
|
|
"trailingTrivia": [
|
|
{
|
|
"kind": "Space",
|
|
"value": 1
|
|
}
|
|
],
|
|
"presence": "Present"
|
|
},
|
|
{
|
|
"tokenKind": {
|
|
"kind": "identifier",
|
|
"text": "B"
|
|
},
|
|
"leadingTrivia": [
|
|
|
|
],
|
|
"trailingTrivia": [
|
|
{
|
|
"kind": "Space",
|
|
"value": 1
|
|
}
|
|
],
|
|
"presence": "Present"
|
|
},
|
|
{
|
|
"tokenKind": {
|
|
"kind": "l_brace"
|
|
},
|
|
"leadingTrivia": [
|
|
|
|
],
|
|
"trailingTrivia": [
|
|
|
|
],
|
|
"presence": "Present"
|
|
},
|
|
{
|
|
"tokenKind": {
|
|
"kind": "r_brace"
|
|
},
|
|
"leadingTrivia": [
|
|
{
|
|
"kind": "Newline",
|
|
"value": 1
|
|
}
|
|
],
|
|
"trailingTrivia": [
|
|
|
|
],
|
|
"presence": "Present"
|
|
}
|
|
],
|
|
"presence": "Present"
|
|
}
|
|
]
|