(decl: AttributeTarget, name: string)
| 58 | } |
| 59 | |
| 60 | export function getAttribute(decl: AttributeTarget, name: string) { |
| 61 | return (decl.attributes as (DataModelAttribute | DataFieldAttribute)[]).find((attr) => attr.decl.$refText === name); |
| 62 | } |
| 63 | |
| 64 | export function isFromStdlib(node: AstNode) { |
| 65 | const model = AstUtils.getContainerOfType(node, isModel); |
no test coverage detected