If it decodes itself then we can't do custom decoding in the cases. For
example, we might want to decode an array to transform its elements
without while decoding. We need this for stringified integers, for
example.
We still have some duplicate unions lying around sometimes, for example
in `kitchen-sink.json`. This will get rid of them. The main issue with
them is that we will create a transformation for each one of them, all
of them duplicates of each other.
* NewtonsoftCSharpTargetLanguage: Emit superclass option
includes Microsoft.Azure.Mobile.Server EntityData class option
forbids superclass name in NewtonsoftCSharpRenderer
overrides superclassForType to return _options.superclass
* Set OptionType to "secondary" for superclass
* Changed equality operator
* Explicitly check if superclass is undefined if needed
* No need for this conditional statement
* Changed all arrow methods in classes to be regular methods. Also exported TypeContext to support this.
* Changed locations that passed functions in previously to pass anonymous functions since proper functions can't be passed around in Typescript
* Moved cppNameStyle from CPlusPlus.ts to support/Strings.ts and renamed it to makeNameStyle.
Added 2 new parameters to makeNameStyle:
- legalizeName: A language-specific function that legalizes a name to render in a given language
- prefix: An optional parameter that specifies a prefix to prepend to names
Moved NamingStyle enumerator from CPlusPlus.ts to support/Strings.ts to support the above change
CPlusPlus.ts:
- Removed multiple private naming function variables and implemented them in their corresponding `makeXxxNamer` methods so they may be modified by inheritors
- Changed the constructor to have C++ properties as default parameters instead of being hardcoded so that inheritors can make their language targetable by quicktype
- updated code to use makeNamStyle instead of cppNameStyle
Removed private parameter naming functions
* Fixed a typo in the constructor for the C++ target language and made it more clear that the prefix function will not in makeNameStyle if no prefix is given
* Checked for if defined for the non-default behaviour for prefix checking in makeNameStyle
* Moved cppNameStyle from CPlusPlus.ts to support/Strings.ts and renamed it to makeNameStyle.
Added 2 new parameters to makeNameStyle:
- legalizeName: A language-specific function that legalizes a name to render in a given language
- prefix: An optional parameter that specifies a prefix to prepend to names
Moved NamingStyle enumerator from CPlusPlus.ts to support/Strings.ts to support the above change
CPlusPlus.ts:
- Removed multiple private naming function variables and implemented them in their corresponding `makeXxxNamer` methods so they may be modified by inheritors
- Changed the constructor to have C++ properties as default parameters instead of being hardcoded so that inheritors can make their language targetable by quicktype
- updated code to use makeNamStyle instead of cppNameStyle
Removed private parameter naming functions
Fixed a typo in the constructor for the C++ target language and made it more clear that the prefix function will not in makeNameStyle if no prefix is given
Checked for if defined for the non-default behaviour for prefix checking in makeNameStyle
* Reverted package.json and package-lock.json
* For C++, changed camel case and pascal case to default to not uppercasing all acronyms, and added two new naming styles to provide the option to upper case acronyms. Updated cpp file to make these options seletable as well
* Fixed whitespace damage, and changed pascal/camel upper acronym comparison to use explicit values
* Moved cppNameStyle from CPlusPlus.ts to support/Strings.ts and renamed it to makeNameStyle.
Added 2 new parameters to makeNameStyle:
- legalizeName: A language-specific function that legalizes a name to render in a given language
- prefix: An optional parameter that specifies a prefix to prepend to names
Moved NamingStyle enumerator from CPlusPlus.ts to support/Strings.ts to support the above change
CPlusPlus.ts:
- Removed multiple private naming function variables and implemented them in their corresponding `makeXxxNamer` methods so they may be modified by inheritors
- Changed the constructor to have C++ properties as default parameters instead of being hardcoded so that inheritors can make their language targetable by quicktype
- updated code to use makeNamStyle instead of cppNameStyle
Removed private parameter naming functions
* Fixed a typo in the constructor for the C++ target language and made it more clear that the prefix function will not in makeNameStyle if no prefix is given
* Checked for if defined for the non-default behaviour for prefix checking in makeNameStyle
* Moved cppNameStyle from CPlusPlus.ts to support/Strings.ts and renamed it to makeNameStyle.
Added 2 new parameters to makeNameStyle:
- legalizeName: A language-specific function that legalizes a name to render in a given language
- prefix: An optional parameter that specifies a prefix to prepend to names
Moved NamingStyle enumerator from CPlusPlus.ts to support/Strings.ts to support the above change
CPlusPlus.ts:
- Removed multiple private naming function variables and implemented them in their corresponding `makeXxxNamer` methods so they may be modified by inheritors
- Changed the constructor to have C++ properties as default parameters instead of being hardcoded so that inheritors can make their language targetable by quicktype
- updated code to use makeNamStyle instead of cppNameStyle
Removed private parameter naming functions
Fixed a typo in the constructor for the C++ target language and made it more clear that the prefix function will not in makeNameStyle if no prefix is given
Checked for if defined for the non-default behaviour for prefix checking in makeNameStyle
* Reverted package.json and package-lock.json