Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate keyword validation for fully supported keywords #5866

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vkip
Copy link
Member

@vkip vkip commented Jan 13, 2025

Avoid abusing 'PartiallySuppportedFlowKeywords' to for non-contextual verification of keywords that are actually fully supported.

@vkip
Copy link
Member Author

vkip commented Jan 13, 2025

jenkins build this please

@vkip
Copy link
Member Author

vkip commented Jan 13, 2025

jenkins build this please

const PartiallySupportedKeywords<std::string>& string_items,
const PartiallySupportedKeywords<int>& int_items,
const PartiallySupportedKeywords<double>& double_items,
KeywordValidator(const UnsupportedKeywords& unsupported_keywords,
Copy link
Member

Choose a reason for hiding this comment

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

Imho this is getting out of hand. I'd introduce some struct, e.g.

struct Supported
{
  SupportedKeywords<std::string>& string;
  SupportedKeywords<int>& int;
  SupportedKeywords<double>& double;
};

and adjust constructor to

KeywordValidator(unsupported, partially_supported, fully_supported, special)

and adjust getters accordingly.

@vkip
Copy link
Member Author

vkip commented Jan 15, 2025

jenkins build this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants