public void WriteResults() { string typeMapPath = CppParseManager.CreateAnalyticsFilePath("CppTypeMap.json"); string jsonData = JsonConvert.SerializeObject(this.TypeMap, Formatting.Indented); File.WriteAllText(typeMapPath, jsonData); string classMapPath = CppParseManager.CreateAnalyticsFilePath("CppClassMap.json"); jsonData = JsonConvert.SerializeObject(this.ClassMap, Formatting.Indented); File.WriteAllText(classMapPath, jsonData); string typeBindingPath = CppParseManager.CreateAnalyticsFilePath("WidgetTypeBindings.json"); jsonData = JsonConvert.SerializeObject(this.DialogTypeBindings, Formatting.Indented); File.WriteAllText(typeBindingPath, jsonData); /* * string missingRefMapPath = CppParseManager.CreateAnalyticsFilePath("MissingRefClassNames.json"); * * jsonData = JsonConvert.SerializeObject(this.MissingRefClassNames, Formatting.Indented); * * File.WriteAllText(missingRefMapPath, jsonData); * * string missingDefMapPath = CppParseManager.CreateAnalyticsFilePath("MissingDefClassNames.json"); * * jsonData = JsonConvert.SerializeObject(this.MissingDefClassNames, Formatting.Indented); * * File.WriteAllText(missingDefMapPath, jsonData); */ }
public void WriteFileAnalytics() { string filePath = CppParseManager.CreateAnalyticsFilePath(this.CppCodeContext.DialogClassName, "WidgetTypeBindings.json"); string jsonData = JsonConvert.SerializeObject(this.WidgetTypeBindingsMap, Formatting.Indented); File.WriteAllText(filePath, jsonData); }
public static void WriteAnalytics() { string filePath = CppParseManager.CreateAnalyticsFilePath("ClassMethodSchemaMap.json"); string jsonData = JsonConvert.SerializeObject(ClassMethodSchemaMap, Formatting.Indented); File.WriteAllText(filePath, jsonData); filePath = CppParseManager.CreateAnalyticsFilePath("HasCreateList.json"); jsonData = JsonConvert.SerializeObject(HasCreateList, Formatting.Indented); File.WriteAllText(filePath, jsonData); filePath = CppParseManager.CreateAnalyticsFilePath("IncompleteBindings.json"); jsonData = JsonConvert.SerializeObject(IncompleteWidgetTypeBindings, Formatting.Indented); File.WriteAllText(filePath, jsonData); filePath = CppParseManager.CreateAnalyticsFilePath("HasBindings.json"); jsonData = JsonConvert.SerializeObject(HasBindings, Formatting.Indented); File.WriteAllText(filePath, jsonData); filePath = CppParseManager.CreateAnalyticsFilePath("DDXMethods.json"); jsonData = JsonConvert.SerializeObject(DDXMethods, Formatting.Indented); File.WriteAllText(filePath, jsonData); SortedDictionary <string, DDXMethods> dDXMethodsSchemaSummary = new SortedDictionary <string, DDXMethods>(); foreach (var dDXMethodSchemaItem in DDXMethods) { var newSummary = new DDXMethods() { MethodName = dDXMethodSchemaItem.Value.MethodName }; foreach (var typeItem in dDXMethodSchemaItem.Value.TypeList) { newSummary.TypeList.Add(typeItem.Key, typeItem.Value); } dDXMethodsSchemaSummary.Add(dDXMethodSchemaItem.Key, newSummary); } filePath = CppParseManager.CreateAnalyticsFilePath("DDXMethodsSummary.json"); jsonData = JsonConvert.SerializeObject(dDXMethodsSchemaSummary, Formatting.Indented); File.WriteAllText(filePath, jsonData); }
public void SaveClassInfo() { string classInfoPath = CppParseManager.CreateAnalyticsFilePath(this.DialogClassName, $"ClassMap.json"); if (CppResultsManager.Self.ClassMap.ContainsKey(this.DialogClassName)) { CppClassResult cppClassResult = CppResultsManager.Self.ClassMap[this.DialogClassName]; string jsonData = JsonConvert.SerializeObject(cppClassResult, Formatting.Indented); File.WriteAllText(classInfoPath, jsonData); CppResultsManager.Self.ClassMap.Remove(this.DialogClassName); } }
public override void WriteSavedNodes() { this.InitNodes(); CppParseManager.DumpFileJson(this.DialogClassName, $"ClassDefs-cpp.json", ParseResults.ClassDefs); CppParseManager.DumpFileJson(this.DialogClassName, $"MessageMap-cpp.json", ParseResults.MessageMap); CppParseManager.DumpFileJson(this.DialogClassName, $"VariableDefs-cpp.json", ParseResults.VariableDefs); CppParseManager.DumpFileJson(this.DialogClassName, $"VariableRefs-cpp.json", ParseResults.VariableRefs); CppParseManager.DumpFileJson(this.DialogClassName, $"MethodDefs-cpp.json", ParseResults.MethodDefs); CppParseManager.DumpFileJson(this.DialogClassName, $"MethodCalls-cpp.json", ParseResults.MethodCalls); CppParseManager.DumpFileJson(this.DialogClassName, $"DDXCalls-cpp.json", ParseResults.DDxCalls); CppParseManager.DumpFileJson(this.DialogClassName, $"ScreenDefs-cpp.json", ParseResults.ScreenDefs); CppParseManager.DumpFileJson(this.DialogClassName, $"EnumDefs-cpp.json", ParseResults.EnumDefs); CppParseManager.DumpFileJson(this.DialogClassName, $"ListDefs-cpp.json", ParseResults.ListDefs); CppParseManager.DumpFileJson(this.DialogClassName, $"Uncatagorized-cpp.json", ParseResults.Uncatagorized); CppParseManager.DumpFileJson(this.DialogClassName, $"All-cpp.json", ParseResults.All); }
public void DumpTreeSchema() { CppParseManager.DumpJson("TreeSchema.json", this.NodeSchemaMap.Values); CppParseManager.DumpJson("TreeTypes.json", this.NodeTypeMap.Values); }