An enum's, a class's or an interface's member at `path` (`Kind::Line`), in the container's own file.
(container: Node, path: string[], context: ResolutionContext)
| 3213 | |
| 3214 | /** An enum's, a class's or an interface's member at `path` (`Kind::Line`), in the container's own file. */ |
| 3215 | function containerMember(container: Node, path: string[], context: ResolutionContext): Node | undefined { |
| 3216 | if (path.length === 0) return undefined; |
| 3217 | return context.getNodesByQualifiedName(`${container.qualifiedName}::${path.join('::')}`) |
| 3218 | .filter((n) => n.filePath === container.filePath) |
| 3219 | .sort(typesFirst)[0]; |
| 3220 | } |
| 3221 | |
| 3222 | /** Kinds a declaration at a file's or a namespace's own level has; a class's member is `Class::member`. */ |
| 3223 | const MEMBER_DECLARATION_KINDS: ReadonlySet<Node['kind']> = new Set<Node['kind']>([ |
no test coverage detected