Expose authoritative lifecycle deletion through capability bindings
This commit is contained in:
@@ -1965,6 +1965,13 @@ const lowerConformance = (
|
||||
return [];
|
||||
}
|
||||
const provider = bindingContext.operationProvider();
|
||||
if (provider.LIFECYCLE()) {
|
||||
if (identifier(provider.identifier(0)) !== "delete") {
|
||||
loweringIssue(state, provider, "invalid-lifecycle-binding", "Only lifecycle.delete is supported");
|
||||
return [];
|
||||
}
|
||||
return [{ operationId, binding: { kind: "lifecycle", primitive: "delete" } }];
|
||||
}
|
||||
if (provider.INTERFACE()) {
|
||||
const targetName = identifier(provider.identifier(0));
|
||||
let target = requireSymbol(state, state.interfaces, targetName, provider, "interface");
|
||||
|
||||
Reference in New Issue
Block a user