(example: string, api: ApiLocation)
| 3584 | } |
| 3585 | |
| 3586 | private convertExample(example: string, api: ApiLocation): string { |
| 3587 | assertSpecIsRosettaCompatible(this.assembly); |
| 3588 | const translated = this.rosetta.translateExample( |
| 3589 | api, |
| 3590 | example, |
| 3591 | TargetLanguage.JAVA, |
| 3592 | enforcesStrictMode(this.assembly), |
| 3593 | ); |
| 3594 | return translated.source; |
| 3595 | } |
| 3596 | |
| 3597 | private convertSamplesInMarkdown(markdown: string, api: ApiLocation): string { |
| 3598 | assertSpecIsRosettaCompatible(this.assembly); |
no test coverage detected