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)
| 3112 | |
| 3113 | /** An enum's, a class's or an interface's member at `path` (`Kind::Line`), in the container's own file. */ |
| 3114 | function containerMember(container: Node, path: string[], context: ResolutionContext): Node | undefined { |
| 3115 | if (path.length === 0) return undefined; |
| 3116 | return context.getNodesByQualifiedName(`${container.qualifiedName}::${path.join('::')}`) |
| 3117 | .filter((n) => n.filePath === container.filePath) |
| 3118 | .sort(typesFirst)[0]; |
| 3119 | } |
| 3120 | |
| 3121 | /** Kinds a declaration at a file's or a namespace's own level has; a class's member is `Class::member`. */ |
| 3122 | const MEMBER_DECLARATION_KINDS: ReadonlySet<Node['kind']> = new Set<Node['kind']>([ |
no test coverage detected