-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
Make MethodCall
classes non-generic
#663
Merged
Merged
Commits on Aug 25, 2018
-
Separate fluent API from
MethodCall
typesRemove the fluent API interface implementations from `MethodCall` et al., and create new dedicated API types that implement them instead. To start off, these new types simply forward all calls to the `Method- Call` instances that they wrap. This might initially seem pointless, but it means that `MethodCall` et al. are no longer forced to implement lots of duplicate methods and be generic just because the fluent API requires it. We'll be able to trim down `MethodCall` et al., possibly even combine them into a single non-generic `MethodCall` type, then translate that simpler API into a generic, type-safe API in the newly added types.
Configuration menu - View commit details
-
Copy full SHA for 0e0c6d2 - Browse repository at this point
Copy the full SHA 0e0c6d2View commit details -
Let API call into uniform
SetCallbackResponse
Instead of forwarding the API types' various `Callback` methods to the corresponding `Callback` methods, which delegate to `SetCallbackWith- Arguments` and `SetCallbackWithoutArguments`, combine the latter into a new uniform method `SetCallbackResponse` and let the API types call that one directly.
Configuration menu - View commit details
-
Copy full SHA for a605c28 - Browse repository at this point
Copy the full SHA a605c28View commit details -
Remove obsolete
SetterMethodCall
This subclass of `MethodCall` was previously only needed for its specially typed `Callback` method. This method was part of the fluent API, which has now been separated into new dedicated types.
Configuration menu - View commit details
-
Copy full SHA for 32a8b10 - Browse repository at this point
Copy the full SHA 32a8b10View commit details -
Let API call into uniform
SetRaiseEventResponse
Instead of forwarding the API types' various `Raises` methods to the corresponding `Raises` methods, which delegate to `RaisesImpl`, rename the latter to `SetRaiseEventResponse` and delegate to those directly.
Configuration menu - View commit details
-
Copy full SHA for 12a2cca - Browse repository at this point
Copy the full SHA 12a2ccaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22e37a2 - Browse repository at this point
Copy the full SHA 22e37a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for efb61c4 - Browse repository at this point
Copy the full SHA efb61c4View commit details -
This class has become practically identical with its base class `MethodCall` when its fluent API `Raises` methods were removed. Use the non-generic base class directly.
Configuration menu - View commit details
-
Copy full SHA for 2ad548c - Browse repository at this point
Copy the full SHA 2ad548cView commit details -
Configuration menu - View commit details
-
Copy full SHA for bc7ea6f - Browse repository at this point
Copy the full SHA bc7ea6fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.