Esempio n. 1
0
        /// <summary>
        /// 各コマンドパラメータの内容に指定ミスがあるかどうかのエラー解析
        /// </summary>
        /// <param name="commandInfo"></param>
        /// <param name="commandParamDic"></param>
        private void CommandParamLinting(CommandInfo commandInfo, Dictionary <string, string> commandParamDic, Linter linter)
        {
            var errs = linter.CommandParamLinting(commandParamDic);

            if (errs == null)
            {
                return;
            }
            foreach (var err in errs)
            {
                err.lineNumber = commandInfo.lineNumber;
                _errList.AddLast(err);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Temp、Optionパラメータの制御
        /// </summary>
        /// <param name="commandInfo">コマンド情報</param>
        /// <param name="commandParamDic">コマンドパラメータ</param>
        /// <param name="linter">commandInfoに対応するlinter</param>
        private void ParamControlStep(CommandInfo commandInfo, Dictionary <string, string> commandParamDic, Linter linter)
        {
            var errList = linter.ParamControlStep(this, commandParamDic);

            if (errList == null)
            {
                return;
            }
            foreach (var err in errList)
            {
                _errList.AddLast(err);
            }
        }