| 273 | /// Specification and properties associated with a language item. |
| 274 | #[derive(Debug, Clone, Default)] |
| 275 | pub struct Spec { |
| 276 | // The location of this specification, if available. |
| 277 | pub loc: Option<Loc>, |
| 278 | // The set of conditions associated with this item. |
| 279 | pub conditions: Vec<Condition>, |
| 280 | // Any pragma properties associated with this item. |
| 281 | pub properties: PropertyBag, |
| 282 | // If this is a function, specs associated with individual code points. |
| 283 | pub on_impl: BTreeMap<CodeOffset, Spec>, |
| 284 | } |
| 285 | |
| 286 | impl Spec { |
| 287 | pub fn has_conditions(&self) -> bool { |
no outgoing calls
no test coverage detected