ts-morph-structures

Home > ts-morph-structures > ConstructorHeadStatementsGetter > getCtorHeadStatements

ConstructorHeadStatementsGetter.getCtorHeadStatements() method

Signature:

getCtorHeadStatements(
    key: MemberedStatementsKey,
  ): readonly stringWriterOrStatementImpl[];

Parameters

Parameter Type Description
key MemberedStatementsKey The membered statement key. fieldKey will be ClassFieldStatementsMap.FIELD_HEAD_SUPER_CALL. statementGroupKey will be “constructor”.

Returns:

readonly stringWriterOrStatementImpl[]

statements to insert before other statements in the purpose block.