import { LineResults } from "../LineResults" ; import { CommandNames } from "../Names/CommandNames" ; import { Command } from "./Command" ; import { CommandMetadata } from "./Metadata/CommandMetadata" ; /**
 * Ends a group of standalone function declarations.
 */ export class StandaloneFunctionsDeclareEndCommand extends Command { /**
     * Metadata on the command.
     */ private static metadata : CommandMetadata = new CommandMetadata ( CommandNames . StandaloneFunctionsDeclareEnd ) . withDescription ( "Ends a group of standalone function declarations" ) . withIndentation ( [ - 1 ] ) ; returns public getMetadata ( ) { return StandaloneFunctionsDeclareEndCommand . metadata ; } param parameters returns public render ( parameters ) { if ( ! this . language . syntax . standaloneFunctions . withinStaticClass ) { return new LineResults ( [ ] ) ; } return this . context . convertParsed ( [ CommandNames . ClassEnd ] ) ; } }