public static Dictionary <string, Func <string[], string> > getMessages(OtherErrors theLogicOrder)
        {
            Dictionary <string, Func <string[], string> > messages = new Dictionary <string, Func <string[], string> > ();

            //messages.Add (OtherErrorType.corruptAndOrStatement.ToString(), theLogicOrder.corruptAndOrStatement);

            return(messages);
        }
 /// <summary>
 /// Converts an object to a <see cref="JsonValue"/>.
 /// </summary>
 /// <param name="serializer">The <see cref="JsonSerializer"/> instance to use for additional
 /// serialization of values.</param>
 /// <returns>The <see cref="JsonValue"/> representation of the object.</returns>
 public JsonValue ToJson(JsonSerializer serializer)
 {
     return(new JsonObject
     {
         ["supportedVersions"] = serializer.Serialize(SupportedVersions),
         ["valid"] = IsValid,
         ["validations"] = serializer.Serialize(MetaSchemaValidations),
         ["otherErrors"] = OtherErrors.ToJson()
     });
 }
        public static void setLanguage()
        {
            currentLanguage = new SwedishLanguage();
            IErrorSender theSender = (currentLanguage as IErrorSender);

            IfStatementErrors   ifError     = theSender.ifStatementErrors;
            ElseStatementErrors elseError   = theSender.elseStatementErrors;
            ForLoopErrors       forError    = theSender.forLoopErrors;
            IndentationErrors   indentError = theSender.indentErrors;
            TextErrors          txtError    = theSender.textErrors;
            VariableErrors      varError    = theSender.variableErrors;

            WhileLoopErrors     whileError   = theSender.whileLoopErrors;
            NumberErrors        numError     = theSender.numberErrors;
            KeywordErrors       keywordError = theSender.keywordErrors;
            FunctionErrors      funcError    = theSender.functionErrors;
            OtherErrors         otherError   = theSender.otherErrors;
            SystemFailureErrors systemErrors = theSender.systemErrors;

            currentLanguage.initLanguageErrors1(ifError, elseError, forError, indentError, txtError, varError);
            currentLanguage.initLanguageErrors2(whileError, numError, keywordError, funcError, otherError, systemErrors);
        }
 /// Inits second part of the language errors. Stores error messages in dictionary.
 public void initLanguageErrors2(WhileLoopErrors While, NumberErrors Number, KeywordErrors Keyword, FunctionErrors Function, OtherErrors Other, SystemFailureErrors system)
 {
     errorMessages.Add(ErrorType.WhileLoop, WhileErrorsOrder.getMessages(While));
     errorMessages.Add(ErrorType.Number, NumberErrorsOrder.getMessages(Number));
     errorMessages.Add(ErrorType.Keyword, KeywordErrorsOrder.getMessages(Keyword));
     errorMessages.Add(ErrorType.Function, FunctionErrorsOrder.getMessages(Function));
     errorMessages.Add(ErrorType.Other, OtherErrorsOrder.getMessages(Other));
     errorMessages.Add(ErrorType.System, SystemFailureErrorsOrder.getMessages(system));
 }