MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / formatMethodKey

Function formatMethodKey

lib/parsers/asm-parser-dotnet.ts:41–52  ·  view source on GitHub ↗
(method: DotNetMethodKey)

Source from the content-addressed store, hash-verified

39};
40
41function formatMethodKey(method: DotNetMethodKey) {
42 const typeName =
43 method.typeArguments.length === 0 ? method.typeName : `${method.typeName}[${method.typeArguments.join(',')}]`;
44 const methodKeyName =
45 method.methodArguments.length === 0
46 ? method.methodName
47 : `${method.methodName}[${method.methodArguments.join(',')}]`;
48
49 return `${typeName}:${methodKeyName}(${method.parameters.join(',')})${
50 method.returnType && method.returnType !== 'void' ? `:${method.returnType}` : ''
51 }`;
52}
53
54function parseJitDisasmMethodKey(methodName: string): DotNetMethodKey | null {
55 const methodKeyText = methodName

Callers 2

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected