import { LineResults } from "../LineResults" ; import { Command } from "./Command" ; /**
 * A general command for the end of a conditional block.
 */ export abstract class BlockEndCommand extends Command { param parameters returns public render ( parameters ) { const ender = this . renderBlockEnd ( ) ; if ( ender === "\0" ) { return LineResults . newBlockLine ( "\0" , - 1 ) ; } return LineResults . newBlockLine ( ender , - 1 ) ; } returns protected renderBlockEnd ( ) { return this . language . syntax . conditionals . end ; } }