gram/conformance/cases/mod-033-comment-ends-imports/analyzed.json
abiwab 43b1afe1bc
All checks were successful
CI / Build & Test (pull_request) Successful in 4m59s
fix(parser): keep a comment closing the file in the import block
2026-11-21 23:56:53 +01:00

310 lines
6.3 KiB
JSON

{
"title": "Comment ends imports",
"slug": "comment-ends-imports",
"meta": {
"title": "Comment ends imports"
},
"registry": {
"ingredients": {
"pate": {
"id": "pate",
"name": "pate",
"is_intermediate": true
},
"flour": {
"id": "flour",
"name": "flour",
"default_unit": "g"
},
"butter": {
"id": "butter",
"name": "butter",
"default_unit": "g"
}
},
"cookware": {}
},
"shopping_list": [
{
"id": "flour",
"name": "flour",
"_usageIds": [
"1"
],
"qty": 200,
"unit": "g",
"normalizedMass": 200,
"isEstimate": false,
"conversionMethod": "physical"
},
{
"id": "butter",
"name": "butter",
"_usageIds": [
"2"
],
"qty": 50,
"unit": "g",
"normalizedMass": 50,
"isEstimate": false,
"conversionMethod": "physical"
}
],
"cookware": [],
"sections": [
{
"title": "Pate",
"ingredients": [
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 200
},
{
"id": "butter",
"_usageId": "2",
"qty": 50,
"unit": "g",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 50
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Mix ",
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g",
"normalizedMass": 200,
"conversionMethod": "physical",
"isEstimate": false
},
"with ",
{
"id": "butter",
"_usageId": "2",
"qty": 50,
"unit": "g",
"normalizedMass": 50,
"conversionMethod": "physical",
"isEstimate": false
},
"."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
}
],
"intermediate_preparation": "pate",
"module": {
"binding": "pate",
"uri": "bases/pate.gram",
"title": "Pate",
"mode": "inline"
},
"metrics": {
"totalMass": 250,
"massStatus": "precise",
"missingMassIngredients": []
}
}
],
"warnings": [
{
"code": "UNUSED_IMPORT",
"message": "Unused import '&pate' from \"./bases/pate.gram\".",
"loc": {
"start": 37,
"end": 71
}
},
{
"code": "MISSING_INGREDIENT",
"message": "Ingredient \"flour\" not found in database — nutritional metrics and density conversions unavailable."
},
{
"code": "MISSING_INGREDIENT",
"message": "Ingredient \"butter\" not found in database — nutritional metrics and density conversions unavailable."
}
],
"metrics": {
"totalTime": 5,
"totalBreakdown": [
{
"label": "section_active:Pate",
"duration": 2
}
],
"idleTime": 0,
"activeTime": 2,
"activeBreakdown": [
{
"label": "section_active:Pate",
"duration": 2
}
],
"preparationTime": 3,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 3
}
],
"totalMass": 250,
"massStatus": "precise",
"missingMassIngredients": [],
"nutrition": {
"total": {
"calories": 0,
"fat": 0,
"carbs": 0,
"protein": 0
},
"isEstimate": false,
"coverage": 0,
"warnings": [
{
"code": "MISSING_INGREDIENT",
"message": "Ingredient \"flour\" not found in database — nutritional metrics and density conversions unavailable."
},
{
"code": "MISSING_INGREDIENT",
"message": "Ingredient \"butter\" not found in database — nutritional metrics and density conversions unavailable."
}
]
}
},
"miseEnPlace": [
{
"section": 0,
"duration": 3,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3,
"intermediates": 1
}
]
}
],
"tasks": {
"tasks": [
{
"id": "s0.prep",
"kind": "prep",
"section": 0,
"duration": {
"nominal": 2
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 2,
"duration": 2
}
],
"after": []
},
{
"id": "s0.prep.pate",
"kind": "prep",
"section": 0,
"intermediate": "pate",
"duration": {
"nominal": 1
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1,
"intermediates": 1
}
],
"after": [
"s0.0"
]
},
{
"id": "s0.0",
"kind": "step",
"section": 0,
"step": 0,
"duration": {
"nominal": 2
},
"after": []
}
],
"sections": [
{
"day": 0,
"intermediate": "pate"
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 5,
"activeTime": 2,
"preparationTime": 3,
"idleTime": 0,
"blocks": [
{
"kind": "prep",
"task": "s0.prep",
"section": 0,
"start": 0,
"end": 3
},
{
"kind": "step",
"task": "s0.0",
"section": 0,
"step": 0,
"start": 3,
"end": 5
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 5,
"sections": [
0
]
}
]
},
"modules": [
{
"binding": "pate",
"uri": "bases/pate.gram",
"title": "Pate",
"meta": {
"title": "Pate"
},
"scaleFactor": 1,
"mode": "inline"
}
]
}