(decl: AttributeTarget, name: string)
| 54 | | AttributeParam; |
| 55 | |
| 56 | export function hasAttribute(decl: AttributeTarget, name: string) { |
| 57 | return !!getAttribute(decl, name); |
| 58 | } |
| 59 | |
| 60 | export function getAttribute(decl: AttributeTarget, name: string) { |
| 61 | return (decl.attributes as (DataModelAttribute | DataFieldAttribute)[]).find((attr) => attr.decl.$refText === name); |
no test coverage detected