@fern-api/csharp-dynamic-snippets 2.63.1 → 2.63.3

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.
package/dist/index.d.cts CHANGED
@@ -117,6 +117,12 @@ declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGen
117
117
  getClassName(name: FernIr.Name): string;
118
118
  getParameterName(name: FernIr.Name): string;
119
119
  getPropertyName(name: FernIr.Name): string;
120
+ /**
121
+ * Returns a property name that is safe within the given class reference's scope.
122
+ * Detects collisions where PascalCase(property) == ClassName and returns the
123
+ * renamed identifier (e.g., "CatalogV1Id_") to avoid CS0542 / CS0117.
124
+ */
125
+ resolvePropertyName(classReference: ast.ClassReference, name: FernIr.Name): string;
120
126
  getMethodName(name: FernIr.Name): string;
121
127
  getNamespace(fernFilepath: FernIr.dynamic.FernFilepath, suffix?: string): string;
122
128
  getEnvironmentTypeReferenceFromID(environmentID: string): ast.ClassReference | undefined;
package/dist/index.d.ts CHANGED
@@ -117,6 +117,12 @@ declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGen
117
117
  getClassName(name: FernIr.Name): string;
118
118
  getParameterName(name: FernIr.Name): string;
119
119
  getPropertyName(name: FernIr.Name): string;
120
+ /**
121
+ * Returns a property name that is safe within the given class reference's scope.
122
+ * Detects collisions where PascalCase(property) == ClassName and returns the
123
+ * renamed identifier (e.g., "CatalogV1Id_") to avoid CS0542 / CS0117.
124
+ */
125
+ resolvePropertyName(classReference: ast.ClassReference, name: FernIr.Name): string;
120
126
  getMethodName(name: FernIr.Name): string;
121
127
  getNamespace(fernFilepath: FernIr.dynamic.FernFilepath, suffix?: string): string;
122
128
  getEnvironmentTypeReferenceFromID(environmentID: string): ast.ClassReference | undefined;