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

Provide configurable fallback scenario for Analyzers #327

Closed
sys27 opened this issue Sep 18, 2020 · 0 comments · Fixed by #328
Closed

Provide configurable fallback scenario for Analyzers #327

sys27 opened this issue Sep 18, 2020 · 0 comments · Fixed by #328
Assignees
Milestone

Comments

@sys27
Copy link
Owner

sys27 commented Sep 18, 2020

All methods in default implementation of Analyzer{TResult} and Analyzer{TResult, TContext} throw an exception. This ticket will allow to change it.

protected virtual TResult Fallback(IExpression) => default(TResult);
// ...
public virtual TResult Analyze(Abs exp) => Fallback(exp);
@sys27 sys27 self-assigned this Sep 18, 2020
@sys27 sys27 added this to the xFunc 4.0.0 milestone Sep 18, 2020
sys27 added a commit that referenced this issue Sep 18, 2020
)

* Use left shift in enum

* Close #327 - Provide configurable fallback scenario for Analyzers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant