Skip to content

Make generated proto message of subclass prepend the parent class names.#9

Merged
ltrzesniewski merged 5 commits intoAbc-Arbitrage:masterfrom
Kuinox:namespaced_proto_messages
Apr 8, 2025
Merged

Make generated proto message of subclass prepend the parent class names.#9
ltrzesniewski merged 5 commits intoAbc-Arbitrage:masterfrom
Kuinox:namespaced_proto_messages

Conversation

@Kuinox
Copy link
Copy Markdown
Contributor

@Kuinox Kuinox commented Mar 31, 2025

No description provided.

@ltrzesniewski ltrzesniewski self-requested a review March 31, 2025 19:46
@ltrzesniewski ltrzesniewski added the enhancement New feature or request label Mar 31, 2025
Reset();

WriteHeader();
var messageTree = SymbolNode.Create(Contracts);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a filter just like for the enums:

SymbolNode.Create(Contracts.Messages.Where(msg => msg.Options.Proto))


namespace Abc.Zebus.MessageDsl.Generator;

public class SymbolNode
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an implementation detail, so it should either be internal or (preferably) a nested private in ProtoGenerator, otherwise it would end up in the library's surface API.

@ltrzesniewski ltrzesniewski merged commit 7d26ef6 into Abc-Arbitrage:master Apr 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants