import { LineResults } from "../LineResults" ; import { CommandNames } from "../Names/CommandNames" ; import { Command } from "./Command" ; import { CommandMetadata } from "./Metadata/CommandMetadata" ; /**
 * The value returned by string searching when a substring isn't found.
 */ export class StringIndexNotFoundCommand extends Command { /**
     * Metadata on the command.
     */ private static metadata : CommandMetadata = new CommandMetadata ( CommandNames . StringIndexNotFound ) . withDescription ( "The value returned by string searching when a substring isn't found." ) ; returns public getMetadata ( ) { return StringIndexNotFoundCommand . metadata ; } param parameters returns public render ( parameters ) { const output = this . language . syntax . strings . indexOfNotFound ; return LineResults . newSingleLine ( output ) ; } }