@phoenix-wing/code-core 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +4 -0
  3. package/README.md +14 -0
  4. package/dist/index.d.ts +10 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +10 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/pnwCaaDialogHandoff.d.ts +17 -0
  9. package/dist/pnwCaaDialogHandoff.d.ts.map +1 -0
  10. package/dist/pnwCaaDialogHandoff.js +34 -0
  11. package/dist/pnwCaaDialogHandoff.js.map +1 -0
  12. package/dist/pnwCaaEnvironment.d.ts +17 -0
  13. package/dist/pnwCaaEnvironment.d.ts.map +1 -0
  14. package/dist/pnwCaaEnvironment.js +23 -0
  15. package/dist/pnwCaaEnvironment.js.map +1 -0
  16. package/dist/pnwCodeRenamePlan.d.ts +47 -0
  17. package/dist/pnwCodeRenamePlan.d.ts.map +1 -0
  18. package/dist/pnwCodeRenamePlan.js +105 -0
  19. package/dist/pnwCodeRenamePlan.js.map +1 -0
  20. package/dist/pnwFileResultTree.d.ts +25 -0
  21. package/dist/pnwFileResultTree.d.ts.map +1 -0
  22. package/dist/pnwFileResultTree.js +37 -0
  23. package/dist/pnwFileResultTree.js.map +1 -0
  24. package/dist/pnwReorderCpp.d.ts +7 -0
  25. package/dist/pnwReorderCpp.d.ts.map +1 -0
  26. package/dist/pnwReorderCpp.js +389 -0
  27. package/dist/pnwReorderCpp.js.map +1 -0
  28. package/dist/pnwReorderHeader.d.ts +21 -0
  29. package/dist/pnwReorderHeader.d.ts.map +1 -0
  30. package/dist/pnwReorderHeader.js +896 -0
  31. package/dist/pnwReorderHeader.js.map +1 -0
  32. package/dist/pnwUuid.d.ts +25 -0
  33. package/dist/pnwUuid.d.ts.map +1 -0
  34. package/dist/pnwUuid.js +140 -0
  35. package/dist/pnwUuid.js.map +1 -0
  36. package/dist/pnwUuidReplacementPlan.d.ts +57 -0
  37. package/dist/pnwUuidReplacementPlan.d.ts.map +1 -0
  38. package/dist/pnwUuidReplacementPlan.js +101 -0
  39. package/dist/pnwUuidReplacementPlan.js.map +1 -0
  40. package/dist/pnwWorkset.d.ts +20 -0
  41. package/dist/pnwWorkset.d.ts.map +1 -0
  42. package/dist/pnwWorkset.js +51 -0
  43. package/dist/pnwWorkset.js.map +1 -0
  44. package/package.json +50 -0
  45. package/src/fixtures/annotation_sep.cpp +27 -0
  46. package/src/fixtures/caa2_wizard_section.h +17 -0
  47. package/src/fixtures/clang_format_class_tail.h +23 -0
  48. package/src/fixtures/clang_format_doubled.h +16 -0
  49. package/src/fixtures/clang_format_nested_markers.h +24 -0
  50. package/src/fixtures/clang_format_off_on.h +18 -0
  51. package/src/fixtures/internal_calls.cpp +29 -0
  52. package/src/fixtures/kevin_wizard_section.h +23 -0
  53. package/src/fixtures/ktalarmclock.clang-format.yaml +57 -0
  54. package/src/fixtures/ktca_KTCAutoCodeFrm_KTCAutoCodeUI.m_src_KTCAutoDialog.cpp +242 -0
  55. package/src/fixtures/ktca_KTCAutoCodeFrm_PublicInterfaces_KTCAutoDialog.h +165 -0
  56. package/src/fixtures/ktca_KTCAutoCodeInterfaces_KTCAutoCodeItf.m_src_KTCAutoAttrAccess.cpp +423 -0
  57. package/src/fixtures/ktca_KTCAutoCodeInterfaces_KTCAutoCodeItf.m_src_KTCAutoBuildGSM.cpp +105 -0
  58. package/src/fixtures/ktca_KTCAutoCodeInterfaces_KTCAutoCodeItf.m_src_KTCAutoPartDoc.cpp +121 -0
  59. package/src/fixtures/ktca_KTCAutoCodeInterfaces_PublicInterfaces_KTCAutoAttrAccess.h +310 -0
  60. package/src/fixtures/ktca_KTCAutoCodeInterfaces_PublicInterfaces_KTCAutoBuildGSM.h +56 -0
  61. package/src/fixtures/ktca_KTCAutoCodeInterfaces_PublicInterfaces_KTCAutoCatalogParam.h +52 -0
  62. package/src/fixtures/ktca_KTCAutoCodeInterfaces_PublicInterfaces_KTCAutoGSM.h +91 -0
  63. package/src/fixtures/ktca_KTCAutoCodeInterfaces_PublicInterfaces_KTCAutoPartDoc.h +106 -0
  64. package/src/fixtures/pnx_bom_analysis_cmd_min.cpp +72 -0
  65. package/src/fixtures/pnx_bom_analysis_param_min.h +49 -0
  66. package/src/fixtures/pnx_bom_param_system_split.h +39 -0
  67. package/src/fixtures/pnx_caa2_widget_decl.h +19 -0
  68. package/src/fixtures/pragma_region.h +18 -0
  69. package/src/index.ts +78 -0
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Minimal excerpt from PNXBomAnalysisParam.h — Kevin Wizard END blank line + KEVIN_SYSTEM_CODE.
3
+ * case_id=pnx-bom-param-min
4
+ */
5
+ #ifndef PNXBomAnalysisParamMin_H
6
+ #define PNXBomAnalysisParamMin_H
7
+
8
+ class PNXBomAnalysisParamMin {
9
+ public:
10
+ void setZebra();
11
+ void getApple();
12
+
13
+ public:
14
+ // START KEVIN CAA WIZARD SECTION PNXBomAnalysis PARAM DECLARATION
15
+
16
+ // clang-format off
17
+ /**
18
+ * @brief Part Count
19
+ * @id 3
20
+ */
21
+ int PartCount;
22
+
23
+ /**
24
+ * @brief Top Part Number
25
+ * @id 2
26
+ */
27
+ CATUnicodeString FirstPartNumber;
28
+
29
+ // clang-format on
30
+ // END KEVIN CAA WIZARD SECTION PNXBomAnalysis PARAM DECLARATION
31
+
32
+ std::vector<PNXBomItem>* productItems;
33
+
34
+ /**
35
+ * @brief Error Message List
36
+ * @id 4
37
+ */
38
+ CATListOfCATUnicodeString errorMessage;
39
+
40
+ public: // KEVIN_SYSTEM_CODE
41
+ // KEVIN_SYSTEM_CODE START
42
+ static CATUnicodeString convertJson(const PNXBomItem& item);
43
+ static int GetSoftwareVersion();
44
+ // KEVIN_SYSTEM_CODE END
45
+
46
+ CATUnicodeString ConvertErrorListToString() const;
47
+ };
48
+
49
+ #endif
@@ -0,0 +1,39 @@
1
+ /**
2
+ * PNXBomAnalysisParam-style: KEVIN_SYSTEM_CODE + public: // functions split.
3
+ * case_id=pnx-bom-param-system-split
4
+ */
5
+ #ifndef PNXBomParamSystemSplit_H
6
+ #define PNXBomParamSystemSplit_H
7
+
8
+ class PNXBomParamSystemSplit {
9
+ public:
10
+ void setZebra();
11
+
12
+ public: // KEVIN_SYSTEM_CODE
13
+ // KEVIN_SYSTEM_CODE START
14
+ /**
15
+ * @brief get the software version
16
+ * @note KEVIN_SYSTEM_CODE
17
+ */
18
+ static int GetSoftwareVersion();
19
+ // KEVIN_SYSTEM_CODE END
20
+
21
+ public: // functions
22
+ /**
23
+ * @brief convert Json
24
+ */
25
+ static CATUnicodeString convertJson(const PNXBomItem& item);
26
+
27
+ /**
28
+ * @brief Convert Error List to String
29
+ * @note KEVIN_SYSTEM_CODE
30
+ */
31
+ CATUnicodeString ConvertErrorListToString() const;
32
+
33
+ /**
34
+ * @brief unrelated helper — must stay in functions section
35
+ */
36
+ void CheckoutAxis();
37
+ };
38
+
39
+ #endif
@@ -0,0 +1,19 @@
1
+ #ifndef SamplePnxCaa2Widget_H
2
+ #define SamplePnxCaa2Widget_H
3
+
4
+ class SamplePnxCaa2Widget {
5
+ public:
6
+ void setZebra(int v);
7
+ void getApple() const;
8
+
9
+ // clang-format off
10
+ //CAA2 WIZARD WIDGET DECLARATION SECTION
11
+ int _FrameParams;
12
+ int _LabelBaseCurve;
13
+ int _SelectorListBaseCurve;
14
+ int _SpinnerPointCount;
15
+ //END CAA2 WIZARD WIDGET DECLARATION SECTION
16
+ // clang-format on
17
+ };
18
+
19
+ #endif
@@ -0,0 +1,18 @@
1
+ #ifndef SamplePragmaRegion_H
2
+ #define SamplePragmaRegion_H
3
+
4
+ class SamplePragmaRegion {
5
+ public:
6
+ void zebra();
7
+ void apple();
8
+
9
+ public:
10
+ #pragma region GeneratedFields
11
+ int field_z_first;
12
+ int field_a_second;
13
+ #pragma endregion
14
+
15
+ void beta();
16
+ };
17
+
18
+ #endif
package/src/index.ts ADDED
@@ -0,0 +1,78 @@
1
+ export {
2
+ type PnwCppReorderResult,
3
+ pnwReorderCppText,
4
+ } from "./pnwReorderCpp.js";
5
+
6
+ export {
7
+ type PnwHeaderReorderOptions,
8
+ type PnwHeaderReorderResult,
9
+ type PnwLockedRegion,
10
+ pnwExtractLockedRegionContents,
11
+ pnwFindLockedRegions,
12
+ pnwReorderHeaderText,
13
+ } from "./pnwReorderHeader.js";
14
+
15
+ export {
16
+ type PnwFileResultGroup,
17
+ type PnwFileResultGroupId,
18
+ type PnwFileResultItem,
19
+ type PnwFileResultSortMode,
20
+ type PnwGroupFileResultOptions,
21
+ pnwCompareFileResults,
22
+ pnwGroupFileResults,
23
+ } from "./pnwFileResultTree.js";
24
+
25
+ export {
26
+ type PnwUuidOccurrence,
27
+ type PnwUuidKind,
28
+ type PnwUuidReplacement,
29
+ pnwFindUuidOccurrences,
30
+ pnwFormatUuidForTemplate,
31
+ pnwIsUuid,
32
+ pnwNormalizeUuid,
33
+ pnwReplaceUuidOccurrences,
34
+ } from "./pnwUuid.js";
35
+
36
+ export {
37
+ type PnwUuidPlanApplyResult,
38
+ type PnwUuidPlanFile,
39
+ type PnwUuidReplacementPlan,
40
+ type PnwUuidReplacementPlanGroup,
41
+ type PnwUuidReplacementPlanHit,
42
+ type PnwUuidReplacementPlanOptions,
43
+ type PnwUuidReplacementStrategy,
44
+ pnwApplyUuidReplacementPlan,
45
+ pnwPlanUuidReplacements,
46
+ } from "./pnwUuidReplacementPlan.js";
47
+
48
+ export {
49
+ type PnwCaaDialogHandoff,
50
+ type PnwCaaDialogHandoffFile,
51
+ pnwIsCaaDialogHandoff,
52
+ } from "./pnwCaaDialogHandoff.js";
53
+
54
+ export {
55
+ type PnwCodeRenameChange,
56
+ type PnwCodeRenameEntry,
57
+ type PnwCodeRenameLevel,
58
+ type PnwCodeRenameOptions,
59
+ type PnwCodeRenamePlan,
60
+ pnwApplyCodeRenameText,
61
+ pnwPlanCodeRename,
62
+ } from "./pnwCodeRenamePlan.js";
63
+
64
+ export {
65
+ type PnwWorkset,
66
+ type PnwWorksetDocument,
67
+ type PnwWorksetParseResult,
68
+ pnwIsSafeWorkspacePath,
69
+ pnwParseWorksetDocument,
70
+ } from "./pnwWorkset.js";
71
+
72
+ export {
73
+ type PnwCaaEnvironment,
74
+ type PnwCaaEnvironmentKey,
75
+ type PnwCaaEnvironmentSource,
76
+ type PnwCaaEnvironmentValue,
77
+ pnwResolveCaaEnvironment,
78
+ } from "./pnwCaaEnvironment.js";