Skip to content

Support for Index and Augmented Assignment mutations

Compare
Choose a tag to compare
@EvanKepner EvanKepner released this 26 Jan 16:27
· 262 commits to master since this release
e5ac46b

Added new mutations for index and augmented assignment:

  • AugAssign in AST e.g. += -= *= /=.
  • Index substitution in lists e.g. take a positive number like i[1] and mutate to zero and a negative number e.g. i[-1] i[0].

Additionally, added a desc attribute to transformers.MutationOpSet that is used in the cli help display, and updated the cli help display to show the description and valid members.