MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isBlockLevel

Function isBlockLevel

src/resolution/ambient-modules.ts:683–685  ·  view source on GitHub ↗

Whether `node` is a declaration at a block's own level: not a class's or an interface's member.

(node: Node)

Source from the content-addressed store, hash-verified

681
682/** Whether `node` is a declaration at a block's own level: not a class's or an interface's member. */
683function isBlockLevel(node: Node): boolean {
684 return DECLARATION_KINDS.has(node.kind) && node.qualifiedName === node.name;
685}
686
687/** The declarations at the block's own level, by name, in position order. */
688function blockMembers(mod: AmbientModule, context: ResolutionContext): Map<string, Node[]> {

Callers 3

blockMembersFunction · 0.85
blockDeclaringFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected