You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/04_documents.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,14 @@ doc.contents
40
40
// range: [ 0, 180, 180 ] }
41
41
```
42
42
43
+
These functions should never throw,
44
+
provided that `str` is a string and the `options` are valid.
45
+
Errors and warnings are included in the documents' `errors` and `warnings` arrays.
46
+
In particular, if `errors` is not empty
47
+
it's likely that the document's parsed `contents` are not entirely correct.
48
+
49
+
The `contents` of a parsed document will always consist of `Scalar`, `Map`, `Seq` or `null` values.
50
+
43
51
#### `parseDocument(str, options = {}): Document`
44
52
45
53
Parses a single `Document` from the input `str`; used internally by `parse`.
@@ -56,10 +64,6 @@ See [Options](#options) for more information on the second parameter.
56
64
57
65
<br/>
58
66
59
-
These functions should never throw; errors and warnings are included in the documents' `errors` and `warnings` arrays. In particular, if `errors` is not empty it's likely that the document's parsed `contents` are not entirely correct.
60
-
61
-
The `contents` of a parsed document will always consist of `Scalar`, `Map`, `Seq` or `null` values.
0 commit comments