Remove IronPython.Compiler.Ast.Arg#1175
Conversation
|
Looks like there are some issues with the start/end indices during parsing. |
|
Looks like I also broke: class test(*[object]): pass |
I don't care about
I does create a merge conflict in |
| public IList<Expression> Items => _items; | ||
| public IReadOnlyList<Expression> Items => _items; | ||
|
|
||
| internal Expression[] UnsafeItems => _items; // TODO: get rid of this |
There was a problem hiding this comment.
Good luck with this! 😄 IReadOnlyCollection should have had CopyTo, just like ICollection has. I suppose ArrayUtils.Insert<T>(T item, IReadOnlyList<T> list) can also do if (list is T[] array) ... to maintain performance .
There was a problem hiding this comment.
Unfortunately ArrayUtils.Insert is in the DLR and I didn't want to rev it just for this. I guess as long as we don't start using UnsafeItems all over the place (I don't see why we would) this is fine.
|
@BCSharp Thanks for the review! All excellent points. I guess I was a bit quick on the merge. 😄 |
Gets rid of the annoying (to me)
Argconstruct. 😄@BCSharp if you have any feedback. Not sure if this will creates merge conflicts with your PR.