ts-morph-structures

Home > ts-morph-structures > ClassMembersMap > moveStatementsToMembers

ClassMembersMap.moveStatementsToMembers() method

Move statements from a sequence of statement maps to the class members.

Signature:

moveStatementsToMembers(statementsMaps: ClassFieldStatementsMap[]): void;

Parameters

Parameter Type Description
statementsMaps ClassFieldStatementsMap[] the statements to apply to each member, ordered by purpose.

Returns:

void