Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(map): Extend supported Key Types for C# codegen #71

Merged
merged 10 commits into from
Jan 25, 2024
Prev Previous commit
Next Next commit
feat(*): cleanup
Signed-off-by: Jonathan Casey <[email protected]>
jonathan-casey committed Nov 13, 2023
commit 3d68270549134086b6656535eaed9ef4fc5036f0
18 changes: 0 additions & 18 deletions lib/codegen/fromcto/csharp/csharpvisitor.js
Original file line number Diff line number Diff line change
@@ -405,24 +405,6 @@ class CSharpVisitor {
return null;
}

/**
* Apply proper casing to the string value
* @param {string} string value
* @param {boolean} isPascalCase flag to convert to pascalCase
* @returns {String} properly cased string value
* @private
*/
doMap(string, isPascalCase) {
const components = string.split('.');
return components.map(component => {
if (isPascalCase) {
return camelCase(component, { pascalCase: true });
} else {
return component;
}
}).join('.');
}

/**
* Visitor design pattern
* @param {EnumValueDeclaration} enumValueDeclaration - the object being visited
Loading