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

Function cfmlVisibility

src/extraction/languages/cfscript.ts:6–17  ·  view source on GitHub ↗

CFML access modifiers (`public`/`private`/`package`/`remote`) on a function_declaration.

(node: SyntaxNode)

Source from the content-addressed store, hash-verified

4
5/** CFML access modifiers (`public`/`private`/`package`/`remote`) on a function_declaration. */
6function cfmlVisibility(node: SyntaxNode): 'public' | 'private' | 'protected' | 'internal' | undefined {
7 for (const child of childrenOf(node)) {
8 if (child?.type === 'access_type') {
9 const text = child.text;
10 if (text === 'public') return 'public';
11 if (text === 'private') return 'private';
12 if (text === 'package') return 'internal';
13 if (text === 'remote') return 'public';
14 }
15 }
16 return undefined;
17}
18
19/**
20 * A string literal's text when it is written out in full, or null when a

Callers

nothing calls this directly

Calls 1

childrenOfFunction · 0.90

Tested by

no test coverage detected