Skip to content

Commit 22332fb

Browse files
committed
Add reference to generated nodes
...and clarrify when `location` must be omitted from nodes.
1 parent cce93e7 commit 22332fb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

readme.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ interface Data { }
6565
#### `Location`
6666

6767
**Location** references a location of a node in a **Unist** file.
68-
If a location is not applicable, the location must be omitted.
69-
**Location** consists of a `start` and end `position`. And, if
68+
**Location** consists of a `start` and `end` position. And, if
7069
relevant, an `indent` property.
7170

71+
When the value represented by a node is not present in the document
72+
corresponding to the syntax tree, it must not have a location. These
73+
nodes are said to be _generated_.
74+
7275
```idl
7376
interface Location {
7477
start: Position;

0 commit comments

Comments
 (0)