Merge branch 'staging' into plant_stages

pull/697/head
Rick Carlino 2018-03-05 11:32:33 -06:00 committed by GitHub
commit 5f241d2455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 69 deletions

View File

@ -1,66 +0,0 @@
// STAGE 1: = = = = = = =
// ARGS TO ADD:
// X "locals" (sequence),
// X "data_type" (parameter_declaration)
//
// NODES TO ADD:
// X "identifier" (label),
// X "parameter_declaration" (label, data_type)
// X "scope_declaration"(contains parameter_declaration),
//
// Stage 2: = = = = = = = =
// NODES TO ADD:
// "local_declaration" (label, data_value),
//
// ARGS TO ADD:
// "data_value" (local_declaration)
//
{
"kind": "sequence",
"args": {
"is_outdated": false,
"version": 4,
"locals": { // <= New args
"kind": "scope_declaration", // <= New node
"args": {},
"body": [
{ // SCENARIO A: Setting the parent value to a 'literal''
"kind": "local_declaration", // <= New node
"args": {
"label": "parent",
"data_value": "POINT_LITERAL_OR_WHATEVER_GOES_HERE"
}
},
{ // SCENARIO B: Defer assignment to parent, only set expected (eventual) type
"kind": "parameter_declaration", // <= New node
"args": {
"label": "parent",
"data_type": "EXPECTED_KIND_GOES_HERE"
}
}
]
}
},
"body": [
{
"kind": "move_absolute",
"args": {
"speed": 800,
"location": {
"kind": "identifier", // <== New Node- this is how you use variables.
"args": {
"label": "parent"
}
},
"offset": {
"kind": "coordinate",
"args": {
"x": 0,
"y": 0,
"z": 0
}
}
}
}
]
}

View File

@ -55,9 +55,8 @@ export function deletePoints(
prog.finish();
})
.catch(function (e) {
error(t("Some {{points}} failed to delete. Please try again.", {
points: pointName
}));
error(t("Some {{points}} failed to delete." +
" Are they in use by sequences?", { points: pointName }));
prog.finish();
});
} catch (e) {