// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #![allow(dead_code)] //! `count` / `count.where` loop compilation. //! //! Stub — real implementation added in a later commit. use anyhow::{bail, Result}; use crate::languages::azure_policy::ast::{Condition, CountNode}; use super::core::Compiler; impl Compiler { pub(super) fn compile_count(&mut self, _count_node: &CountNode) -> Result { let _ = self; bail!("count compilation not yet implemented") } pub(super) const fn try_compile_count_as_any( &mut self, _count_node: &CountNode, _condition: &Condition, ) -> Result> { _ = self.register_counter; Ok(None) } }