MCPcopy
hub / github.com/colbymchenry/codegraph / FieldInfo

Interface FieldInfo

src/resolution/c-fnptr-synthesizer.ts:62–69  ·  view source on GitHub ↗

A struct field, in declaration order, flagged when it is a function pointer.

Source from the content-addressed store, hash-verified

60
61/** A struct field, in declaration order, flagged when it is a function pointer. */
62interface FieldInfo {
63 name: string;
64 index: number;
65 isFnPtr: boolean;
66 /** The field's declared type token (e.g. `redisCommand` for `struct redisCommand *cmd`),
67 * used to walk a chained receiver `c->cmd->proc`. Empty for fn-pointer fields. */
68 type: string;
69}
70
71function sliceLines(content: string, startLine?: number, endLine?: number): string {
72 if (!startLine) return '';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected