import { NativeCallSyntax } from "../Languages/Properties/Syntax/NativeCallSyntax" ; import { CommandNames } from "../Names/CommandNames" ; import { CommandMetadata } from "./Metadata/CommandMetadata" ; import { SingleParameter } from "./Metadata/Parameters/SingleParameter" ; import { NativeCallCommand } from "./NativeCallCommand" ; /**
 * Retrieves the length of an string.
 */ export class DictionaryContainsKeyCommand extends NativeCallCommand { /**
     * Metadata on the command.
     */ private static metadata : CommandMetadata = new CommandMetadata ( CommandNames . DictionaryContainsKey ) . withDescription ( "Retrieves the length of an string" ) . withParameters ( [ new SingleParameter ( "dictionary" , "A dictionary to check for key membership." , true ) , new SingleParameter ( "key" , "A key to check for membership in the dictionary." , true ) , ] ) ; returns public getMetadata ( ) { return DictionaryContainsKeyCommand . metadata ; } returns protected retrieveNativeCallSyntax ( ) { return this . language . syntax . dictionaries . containsKey ; } }