(node: AstNode)
| 113 | } |
| 114 | |
| 115 | export function isFromStdlib(node: AstNode) { |
| 116 | const model = getContainingModel(node); |
| 117 | return !!model && !!model.$document && model.$document.uri.path.endsWith('stdlib.zmodel'); |
| 118 | } |
| 119 | |
| 120 | export function getContainingModel(node: AstNode | undefined): Model | null { |
| 121 | if (!node) { |
nothing calls this directly
no test coverage detected