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

Subscribe to Post wont work for cases like post(getMethod()) #17

Open
thsaravana opened this issue Aug 29, 2019 · 0 comments
Open

Subscribe to Post wont work for cases like post(getMethod()) #17

thsaravana opened this issue Aug 29, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@thsaravana
Copy link
Member

fun getMethod() : Type = Unit

bus.post(getMethod())

@Subscribe
fun subcribe(type: Type) {
}

In the above case, Post to Subscribe connection would work. But Subscribe to Post connection doesn't. We first need to find the usages of Type.. and from that find out the usages were Type is a return type of a Method. Then take those methods and find usages for those and then filter out all the cases where the method is used as a ValueArgument of post method. This will establish the connection.

@thsaravana thsaravana added the enhancement New feature or request label Aug 29, 2019
@thsaravana thsaravana added this to the 0.5 milestone Aug 29, 2019
@thsaravana thsaravana self-assigned this Aug 29, 2019
thsaravana added a commit that referenced this issue Nov 27, 2019
@thsaravana thsaravana modified the milestones: 0.5, 0.6 Mar 8, 2020
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

No branches or pull requests

1 participant