1
Files
fluent-java/fluent.syntax/src/test/resources/reference_fixtures/literal_expressions.json
Voomra 499c699cd1 feat: fluent.syntax
Портирование кода из fluent-kotlin
https://github.com/projectfluent/fluent-kotlin
2025-07-21 15:23:11 +03:00

149 lines
2.9 KiB
JSON

{
"type": "Resource",
"body": [
{
"type": "Message",
"id": {
"type": "Identifier",
"name": "string-expression",
"span": {
"type": "Span",
"start": 0,
"end": 17
}
},
"value": {
"type": "Pattern",
"elements": [
{
"type": "Placeable",
"expression": {
"value": "abc",
"type": "StringLiteral",
"span": {
"type": "Span",
"start": 21,
"end": 26
}
},
"span": {
"type": "Span",
"start": 20,
"end": 27
}
}
],
"span": {
"type": "Span",
"start": 20,
"end": 27
}
},
"attributes": [],
"comment": null,
"span": {
"type": "Span",
"start": 0,
"end": 27
}
},
{
"type": "Message",
"id": {
"type": "Identifier",
"name": "number-expression",
"span": {
"type": "Span",
"start": 28,
"end": 45
}
},
"value": {
"type": "Pattern",
"elements": [
{
"type": "Placeable",
"expression": {
"value": "123",
"type": "NumberLiteral",
"span": {
"type": "Span",
"start": 49,
"end": 52
}
},
"span": {
"type": "Span",
"start": 48,
"end": 53
}
}
],
"span": {
"type": "Span",
"start": 48,
"end": 53
}
},
"attributes": [],
"comment": null,
"span": {
"type": "Span",
"start": 28,
"end": 53
}
},
{
"type": "Message",
"id": {
"type": "Identifier",
"name": "number-expression",
"span": {
"type": "Span",
"start": 54,
"end": 71
}
},
"value": {
"type": "Pattern",
"elements": [
{
"type": "Placeable",
"expression": {
"value": "-3.14",
"type": "NumberLiteral",
"span": {
"type": "Span",
"start": 75,
"end": 80
}
},
"span": {
"type": "Span",
"start": 74,
"end": 81
}
}
],
"span": {
"type": "Span",
"start": 74,
"end": 81
}
},
"attributes": [],
"comment": null,
"span": {
"type": "Span",
"start": 54,
"end": 81
}
}
],
"span": {
"type": "Span",
"start": 0,
"end": 82
}
}