This PR cherry-picks the following commits:
- c7367b7065
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
344077b04e
commit
991f2f9417
|
|
@ -226,11 +226,6 @@ for (const [name, type] of modelTypes)
|
|||
for (const [name, literals] of enumTypes)
|
||||
renderEnum(name, literals);
|
||||
|
||||
if (process.argv[3] !== '--skip-format') {
|
||||
// run the formatting tool for .NET, to ensure the files are prepped
|
||||
execSync(`dotnet format "${outputDir}"`);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -209,11 +209,10 @@ function writeCSharpClass(className, inheritFrom, serializedProperties) {
|
|||
channels_ts.push('using System.Collections.Generic;');
|
||||
channels_ts.push('using System.Text.Json.Serialization;');
|
||||
channels_ts.push(``);
|
||||
channels_ts.push(`namespace Microsoft.Playwright.Transport.Protocol`);
|
||||
channels_ts.push(`{`);
|
||||
channels_ts.push(` internal class ${className}${inheritFrom ? ' : ' + inheritFrom : ''}`);
|
||||
channels_ts.push(`namespace Microsoft.Playwright.Transport.Protocol;`);
|
||||
channels_ts.push(``);
|
||||
channels_ts.push(`internal class ${className}${inheritFrom ? ' : ' + inheritFrom : ''}`);
|
||||
channels_ts.push(serializedProperties);
|
||||
channels_ts.push(`}`);
|
||||
channels_ts.push(``);
|
||||
writeFile(`${className}.cs`, channels_ts.join('\n'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue