Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tasks:
cmds:
- deno fmt --check src/ test/
- deno lint src/
- deno check ./**/*.ts
- deno check ./src/**/*.ts
- deno test -A --unstable-worker-options --permit-no-files
install:
description: Install templates
Expand Down
6 changes: 5 additions & 1 deletion src/proto/proto_visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ package ${ns.name};\n\n`);
this.write(`enum ${pascalCase(e.name)} {\n`);
e.values.forEach((ev) => {
this.write(formatComment(" // ", ev.description));
this.write(` ${snakeCase(ev.name).toUpperCase()} = ${ev.index};\n`);
this.write(
` ${snakeCase(e.name).toUpperCase()}_${
snakeCase(ev.name).toUpperCase()
} = ${ev.index};\n`,
);
});
this.write(`}\n\n`);
if (!this.valueTypes.has(e.name)) {
Expand Down
Loading
Loading