示例#1
0
        public override IAsmLine Reparse()
        {
            for (var i = 1; i < 10; i++)
            {
                Condition = Condition.Replace($"\\{i}", $"args[{i - 1}]");
                Message   = Message?.Replace($"\\{i}", $"args[{i - 1}]");
            }

            Condition = CSharp.ReplaceDataTypesInString(Condition);
            Message   = CSharp.ReplaceDataTypesInString(Message);

            return(base.Reparse());
        }
示例#2
0
        public virtual IAsmLine Reparse()
        {
            //throw new NotImplementedException();
            //Console.Error.WriteLine(this.GetType().FullName + " not re-parsed!");

            for (var i = 1; i < 10; i++)
            {
                Code = Code.Replace($"\\{i}", $"args[{i - 1}]");
            }

            Code = Code.Replace("_NARG", "args.Length");
            Code = CSharp.ReplaceDataTypesInString(Code);
            return(this);
        }