{"version":3,"sources":["../../src/components/source-code.ts"],"sourcesContent":["import { FileBase, FileBaseOptions, Project } from 'projen';\nimport { codeBlock } from '../utils/code-block.js';\n\nexport interface SourceCodeOptions extends FileBaseOptions {\n  codeBlock: string;\n}\n\nexport class SourceCode extends FileBase {\n  private startComment = '//';\n\n  constructor(\n    project: Project,\n    filePath: string,\n    private options: SourceCodeOptions,\n  ) {\n    super(project, filePath, options);\n  }\n\n  protected synthesizeContent(): string | undefined {\n    const marker =\n      this.readonly && this.marker ? `${this.startComment} ${this.marker}` : '';\n\n    return `${marker}\\n${codeBlock(this.options.codeBlock)}`;\n  }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmD;AACnD,wBAA0B;AAMnB,MAAM,mBAAmB,uBAAS;AAAA,EAGvC,YACE,SACA,UACQ,SACR;AACA,UAAM,SAAS,UAAU,OAAO;AAFxB;AAAA,EAGV;AAAA,EARQ,eAAe;AAAA,EAUb,oBAAwC;AAChD,UAAM,SACJ,KAAK,YAAY,KAAK,SAAS,GAAG,KAAK,YAAY,IAAI,KAAK,MAAM,KAAK;AAEzE,WAAO,GAAG,MAAM;AAAA,MAAK,6BAAU,KAAK,QAAQ,SAAS,CAAC;AAAA,EACxD;AACF;","names":[]}