public AddPreSufFixVariableMacroImplementation([Optional] MacroParameterValueCollection arguments)
        {
            if (arguments == null || arguments.Count != 4)
            {
                return;
            }

            _variableParameter = arguments[0];
            _prefix            = ProcessHelper.GetRealValueOrNull(arguments[1]);
            _suffix            = ProcessHelper.GetRealValueOrNull(arguments[2]);
            _transform         = ProcessHelper.GetTransformValueFromArgument(arguments[3]);
        }
Example #2
0
        public GeneralFunctionVariableMacroImplementation([Optional] MacroParameterValueCollection arguments)
        {
            if (arguments == null || arguments.Count != 2)
            {
                _functionToRun = NoTransform;
                return;
            }

            _variableParameter = arguments[0];

            _functionToRun = CreateFunctionBasedOn(ProcessHelper.GetRealValueOrNull(arguments[1]));
        }