MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / find_sam

Function find_sam

internal/cbm/lsp/java_lsp.c:2150–2158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2148};
2149
2150static const JavaSAMSpec *find_sam(const char *qn) {
2151 if (!qn)
2152 return NULL;
2153 for (int i = 0; JAVA_SAM_TABLE[i].qn; i++) {
2154 if (strcmp(JAVA_SAM_TABLE[i].qn, qn) == 0)
2155 return &JAVA_SAM_TABLE[i];
2156 }
2157 return NULL;
2158}
2159
2160/* Compute the SAM's `param_idx`-th parameter type for a functional interface
2161 * `fi_qn` parameterized with `targs`. Returns cbm_type_unknown() when the

Callers 2

bind_lambda_argsFunction · 0.85
resolve_method_referenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected