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); }
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); }
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); }