public void Write(TextWriter sw, GUIDToCommentMap comments) { sw.WriteLine("\t\t\t\t{"); sw.WriteLine("\t\t\t\t\tProductGroup = {0};", CommentedGUID.Write(@group, comments)); sw.WriteLine("\t\t\t\t\tProjectRef = {0};", CommentedGUID.Write(projectRef, comments)); sw.WriteLine("\t\t\t\t}"); }
public override void WriteToSection(TextWriter sw, GUIDToCommentMap comments) { sw.WriteLine( "\t\t{0} = {{isa = PBXBuildFile; fileRef = {1}; {2}}};", CommentedGUID.Write(guid, comments), CommentedGUID.Write(fileRef, comments), postfix); }
protected void WriteCommentedGuidListProperty(string prop, TextWriter sw, GUIDToCommentMap comments) { sw.WriteLine("\t\t\t{0} = (", prop); var list = m_ListProperties[prop]; foreach (string v in list) { sw.WriteLine("\t\t\t\t{0},", CommentedGUID.Write(v, comments)); } sw.WriteLine("\t\t\t);"); }
public override void WriteToSection(TextWriter sw, GUIDToCommentMap comments) { // TODO: the implementation works but is not elegant var processedProperties = new HashSet <string>(); var allProps = new List <string>(); allProps.AddRange(GetPropertyNames()); allProps.Sort(); sw.WriteLine("\t\t{0} = {{", CommentedGUID.Write(guid, comments)); WritePropertyWrapper("isa", processedProperties, sw, comments); // always the first foreach (var prop in allProps) { WritePropertyWrapper(prop, processedProperties, sw, comments); } foreach (var line in m_BadLines) { sw.WriteLine(line); } sw.WriteLine("\t\t};"); }
public override void WriteToSection(TextWriter sw, GUIDToCommentMap comments) { sw.WriteLine("\t\t{0} = {1};", CommentedGUID.Write(guid, comments), text); }
protected void WriteCommentedGuidProperty(string prop, TextWriter sw, GUIDToCommentMap comments) { sw.WriteLine("\t\t\t{0} = {1};", prop, CommentedGUID.Write(m_Properties[prop], comments)); }