public procedure_definition CreateAndAddToClassWriteProc(statement st, ident id, SourceContext sc) { var fp = SyntaxTreeBuilder.BuildFormalParameters(new List <ident>() { new ident("value") }, new List <type_definition>() { new no_type() }); var pd = SyntaxTreeBuilder.BuildShortProcDefinition(fp, null, new method_name(id.name, sc), st, sc); return(pd); }