Skip to content

Commit

Permalink
feat(http-client-csharp): adopt TCGC getAllOperations
Browse files Browse the repository at this point in the history
- update emitter logic to derive operation defintions from TCGC instead of raw compiler result
- update `ExampleMockValueBuilder` to get constant value from `InputLiteralType`
- add implicit conversion operation from `InputLiteralType` to `InputConstant`
- update unit test cases
- minor error message improvment

part of Azure/autorest.csharp#3994
  • Loading branch information
Mingzhe Huang (from Dev Box) committed Jul 17, 2024
1 parent 67655d7 commit efd9ea9
Show file tree
Hide file tree
Showing 13 changed files with 636 additions and 687 deletions.
2 changes: 1 addition & 1 deletion packages/http-client-csharp/emitter/src/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export async function $onEmit(context: EmitContext<NetEmitterOptions>) {
const existingProjectOption = options["existing-project-folder"]
? `--existing-project-folder ${options["existing-project-folder"]}`
: "";
const debugFlag = options.debug ?? false ? " --debug" : "";
const debugFlag = (options.debug ?? false) ? " --debug" : "";

const projectRoot = findProjectRoot(dirname(fileURLToPath(import.meta.url)));
const generatorPath = resolvePath(
Expand Down
Loading

0 comments on commit efd9ea9

Please sign in to comment.