aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/helper-simple-access/README.md
blob: 81660daf75bb58f5e26253c42a8a734222be665c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# @babel/helper-simple-assignment

There are many cases where it is hard to perform transformations because a
piece of code is using complex structures. Say you want to rewrite all accesses
to a given variable, and there are cases like

```
i += 1
--i;
```

It is difficult to work with.

This helper can handle converting these to simple access patterns of standard
assignment. This plugin does _not_ handle

```
{ a } = foo;
```

so assignment to patterns still needs to be handled when you are processing
updates to values.

## Usage

TODO