MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / extractMethodCall

Function extractMethodCall

masfactory-visualizer/src/parser/astUtils.ts:133–142  ·  view source on GitHub ↗
(functionText: string)

Source from the content-addressed store, hash-verified

131 * e.g., "graph.create_node" -> { caller: "graph", method: "create_node" }
132 */
133export function extractMethodCall(functionText: string): { caller: string; method: string } | null {
134 const lastDotIndex = functionText.lastIndexOf('.');
135 if (lastDotIndex === -1) {
136 return null;
137 }
138 return {
139 caller: functionText.substring(0, lastDotIndex),
140 method: functionText.substring(lastDotIndex + 1)
141 };
142}

Callers 8

parseCreateNodeFunction · 0.90
parseEdgeFromEntryFunction · 0.90
parseEdgeToExitFunction · 0.90
parseEdgeFromControllerFunction · 0.90
parseEdgeToControllerFunction · 0.90
parseEdgeToTerminateNodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected