MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / findSerializerModule

Function findSerializerModule

packages/alphatab/scripts/Serializer.common.ts:3–9  ·  view source on GitHub ↗
(type: TypeWithNullableInfo)

Source from the content-addressed store, hash-verified

1import type { TypeWithNullableInfo } from './TypeSchema';
2
3export function findSerializerModule(type: TypeWithNullableInfo) {
4 const module = type.modulePath;
5 const importPath = module.split('/');
6 importPath.splice(2, 0, 'generated');
7 importPath[importPath.length - 1] = `${type.typeAsString}Serializer`;
8 return importPath.join('/');
9}

Callers 2

generateToJsonBodyFunction · 0.90
generateSetPropertyBodyFunction · 0.90

Calls 2

spliceMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected