Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backend for Darwin availability annotations. #857

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -878,13 +878,8 @@ async function if_is_fabric_scoped_struct(type, options) {
let packageIds = await templateUtil.ensureZclPackageIds(this);
let st = await zclQuery.selectStructByName(this.global.db, type, packageIds);

if (st) {
// TODO: Should know whether a struct is fabric-scoped without sniffing its
// members.
let fields = await zclQuery.selectAllStructItemsById(this.global.db, st.id);
if (fields.find((i) => i.type.toLowerCase() == 'fabric_idx')) {
return options.fn(this);
}
if (st && st.isFabricScoped) {
return options.fn(this);
}

return options.inverse(this);
Expand Down
Loading