Skip to content

[F] getSourceTraitName

function getSourceTraitName(program, property): string | undefined;

Retrieves the traitName stored for the given property, if any.

ParameterTypeDescription
programProgramProgram object with context for the current compilation
propertyModelPropertyThe model property for which the trait name should be retrieved

string | undefined