Skip to content

Commit 8d7fbaf

Browse files
committed
Docs: trivial update
1 parent 66456c5 commit 8d7fbaf

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

docs/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
home: true
33
actionText: Get Started →
44
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...
512
---
613

714
<center>

docs/api/ast-utils.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -361,26 +361,23 @@ Check whether a given node is parenthesized or not.
361361
This function detects it correctly even if it's parenthesized by specific syntax.
362362

363363
```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)) {}
384381
```
385382

386383
### Parameters

0 commit comments

Comments
 (0)