Пример #1
0
 public void SigparseVoidFn()
 {
     sp.Parse("void foo()");
     Assert.AreEqual("foo", sp.ProcedureName);
     Assert.IsTrue(sp.IsValid);
     Assert.AreEqual(0, sp.Signature.Arguments.Length);
     Assert.IsNull(sp.Signature.ReturnValue);
 }
Пример #2
0
        public void ApplyChangesToProcedure(Procedure procedure)
        {
            var ser = arch.CreateProcedureSerializer(new TypeLibraryLoader(arch, true), "stdapi");          //BUG:Where does convetion come from? Platform?
            var sp  = new SignatureParser(arch);

            sp.Parse(dlg.Signature.Text);
            Debug.Assert(sp.IsValid);
            procedure.Signature = ser.Deserialize(sp.Signature, procedure.Frame);
        }
Пример #3
0
        protected void Signature_TextChanged(object sender, EventArgs e)
        {
            var parser = new SignatureParser(arch);

            parser.Parse(dlg.Signature.Text);
            EnableControls(parser.IsValid);
            if (parser.IsValid)
            {
                proc.Signature = parser.Signature;
            }
        }
 public void ApplyChangesToProcedure(Program program, Procedure procedure)
 {
     var ser = program.CreateProcedureSerializer();
     var sp = new SignatureParser(arch);
     sp.Parse(dlg.Signature.Text);
     Debug.Assert(sp.IsValid);
     procedure.Signature = ser.Deserialize(sp.Signature, procedure.Frame);
 }
 protected void Signature_TextChanged(object sender, EventArgs e)
 {
     var parser = new SignatureParser(arch);
     parser.Parse(dlg.Signature.Text);
     EnableControls(parser.IsValid);
     if (parser.IsValid)
     {
         proc.Signature = parser.Signature;
     }
 }
Пример #6
0
 public void ApplyChangesToProcedure(Procedure procedure)
 {
     var ser = arch.CreateProcedureSerializer(new TypeLibraryLoader(arch, true), "stdapi");          //BUG:Where does convetion come from? Platform?
     var sp = new SignatureParser(arch);
     sp.Parse(dlg.Signature.Text);
     Debug.Assert(sp.IsValid);
     procedure.Signature = ser.Deserialize(sp.Signature, procedure.Frame);
 }