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

feat: Add CtAbstractInvocation.addArgumentAt method #3885

Conversation

slarse
Copy link
Collaborator

@slarse slarse commented Apr 21, 2021

#3884

This PR adds the method CtAbstractInvocation.addArgumentAt(int, CtExpression<?>) to the public API, as discussed in #3884.

This PR will determine whether we go with the addX naming convention, or the addXAt naming convention. Both are already present in the project, but we should adopt one as the predominant style. I favor addXAt(int,CtElement) because it makes it easier to see that the method is distinct, but addX(int,CtElement) is also valid as that is a common overload in the Java standard library collections.

@slarse slarse changed the title feat: Add CtAbstractInvocation.addArgumentAt method wip: feat: Add CtAbstractInvocation.addArgumentAt method Apr 21, 2021
@slarse slarse changed the title wip: feat: Add CtAbstractInvocation.addArgumentAt method review: feat: Add CtAbstractInvocation.addArgumentAt method Apr 22, 2021
algomaster99 added a commit to ASSERT-KTH/diffmin that referenced this pull request Apr 22, 2021
@monperrus monperrus changed the title review: feat: Add CtAbstractInvocation.addArgumentAt method feat: Add CtAbstractInvocation.addArgumentAt method Apr 26, 2021
@monperrus monperrus merged commit 92dd08b into INRIA:master Apr 26, 2021
@monperrus
Copy link
Collaborator

useful new API method! thanks @slarse

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