blob: f67b7dc91b4ab2dfea28c65b1d06472d2845f49f [file] [log] [blame]
{
"bindings": {
"dart": {
"starting_fidl": "step_00_before",
"starting_src": "dart/step_00_before.dart",
"steps": [
{
"instructions": [
"Add a default case to any switch statements on the union to handle new unknown variants"
],
"source": "dart/step_01_during.dart",
"step_num": 1
},
{
"fidl": "step_02_after",
"step_num": 2
},
{
"instructions": [
"Replace the default case with the unknown tag."
],
"source": "dart/step_03_after.dart",
"step_num": 3
}
]
},
"go": {
"starting_fidl": "step_00_before",
"starting_src": "go/step_00_before.go",
"steps": [
{
"fidl": "step_02_after",
"step_num": 2
},
{
"instructions": [
"You may now use any flexible union specific APIs"
],
"source": "go/step_03_after.go",
"step_num": 3
}
]
},
"hlcpp": {
"starting_fidl": "step_00_before",
"starting_src": "hlcpp/step_00_before.cc",
"steps": [
{
"instructions": [
"Add a default case to any switch statements on the union to handle new unknown variants"
],
"source": "hlcpp/step_01_during.cc",
"step_num": 1
},
{
"fidl": "step_02_after",
"step_num": 2
},
{
"instructions": [
"Replace the default case with the `kUnknown` tag.",
"You may now use any flexible union specific APIs"
],
"source": "hlcpp/step_03_after.cc",
"step_num": 3
}
]
},
"llcpp": {
"starting_fidl": "step_00_before",
"starting_src": "llcpp/step_00_before.cc",
"steps": [
{
"instructions": [
"Add a default case to any switch statements on the union to handle new unknown variants"
],
"source": "llcpp/step_01_during.cc",
"step_num": 1
},
{
"fidl": "step_02_after",
"step_num": 2
},
{
"instructions": [
"Replace the default case with the `kUnknown` tag.",
"You may now use any flexible union specific APIs"
],
"source": "llcpp/step_03_after.cc",
"step_num": 3
}
]
},
"rust": {
"starting_fidl": "step_00_before",
"starting_src": "rust/step_00_before.rs",
"steps": [
{
"instructions": [
"Add `[allow(unreachable_patterns)]` and an underscore arm to match statements on the union"
],
"source": "rust/step_01_during.rs",
"step_num": 1
},
{
"fidl": "step_02_after",
"step_num": 2
},
{
"instructions": [
"Remove the attribute and replace the underscore arm with the generated macro to match against unknown variants"
],
"source": "rust/step_03_after.rs",
"step_num": 3
}
]
}
},
"fidl": {
"step_00_before": {
"instructions": [],
"source": "fidl/step_00_before.test.fidl"
},
"step_02_after": {
"instructions": [
"Change the union from `strict` to `flexible`"
],
"source": "fidl/step_02_after.test.fidl"
}
},
"title": "Change a union from strict to flexible"
}