File tree Expand file tree Collapse file tree 2 files changed +24
-20
lines changed Expand file tree Collapse file tree 2 files changed +24
-20
lines changed Original file line number Diff line number Diff line change 2
2
home : true
3
3
actionText : Get Started →
4
4
actionLink : /guide/getting-started
5
+ features :
6
+ - title : Scope Utilities
7
+ details : Finding the specific global variables and their members with tracking assignments, finding variables, etc...
8
+ - title : AST Utilities
9
+ details : Computing the runtime value of a node, Getting the property name of a Property|MemberExpression|MemberExpression node, etc...
10
+ - title : Token Utilities
11
+ details : Distinguishing the token types of a given token, etc...
5
12
---
6
13
7
14
<center >
Original file line number Diff line number Diff line change @@ -361,26 +361,23 @@ Check whether a given node is parenthesized or not.
361
361
This function detects it correctly even if it's parenthesized by specific syntax.
362
362
363
363
``` js
364
- f (a); // → this `a` is not parenthesized.
365
- f ((b)); // → this `b` is parenthesized.
366
-
367
- new C (a); // → this `a` is not parenthesized.
368
- new C ((b)); // → this `b` is parenthesized.
369
-
370
- if (a) {} // → this `a` is not parenthesized.
371
- if ((b)) {} // → this `b` is parenthesized.
372
-
373
- switch (a) {} // → this `a` is not parenthesized.
374
- switch ((b)) {} // → this `b` is parenthesized.
375
-
376
- while (a) {} // → this `a` is not parenthesized.
377
- while ((b)) {} // → this `b` is parenthesized.
378
-
379
- do {} while (a); // → this `a` is not parenthesized.
380
- do {} while ((b)); // → this `b` is parenthesized.
381
-
382
- with (a) {} // → this `a` is not parenthesized.
383
- with ((b)) {} // → this `b` is parenthesized.
364
+ // those `a` are not parenthesized.
365
+ f (a);
366
+ new C (a);
367
+ if (a) {}
368
+ switch (a) {}
369
+ while (a) {}
370
+ do {} while (a);
371
+ with (a) {}
372
+
373
+ // those `b` are parenthesized.
374
+ f ((b));
375
+ new C ((b));
376
+ if ((b)) {}
377
+ switch ((b)) {}
378
+ while ((b)) {}
379
+ do {} while ((b));
380
+ with ((b)) {}
384
381
```
385
382
386
383
### Parameters
You can’t perform that action at this time.
0 commit comments