Add reference to generated nodes · syntax-tree/unist@22332fb (original) (raw)

Original file line number Diff line number Diff line change
@@ -65,10 +65,13 @@ interface Data { }
65 65 #### `Location`
66 66
67 67 **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
70 69 relevant, an `indent` property.
71 70
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 +
72 75 ```idl
73 76 interface Location {
74 77 start: Position;