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

Function find_sam

internal/cbm/lsp/java_lsp.c:2215–2223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2213};
2214
2215static const JavaSAMSpec *find_sam(const char *qn) {
2216 if (!qn)
2217 return NULL;
2218 for (int i = 0; JAVA_SAM_TABLE[i].qn; i++) {
2219 if (strcmp(JAVA_SAM_TABLE[i].qn, qn) == 0)
2220 return &JAVA_SAM_TABLE[i];
2221 }
2222 return NULL;
2223}
2224
2225/* Compute the SAM's `param_idx`-th parameter type for a functional interface
2226 * `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