Skip to content

Commit bec8395

Browse files
committed
chore: add comment about nested parameter
1 parent 6140e86 commit bec8395

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/N3DataFactory.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ export class DefaultGraph extends Term {
188188
DEFAULTGRAPH = new DefaultGraph();
189189

190190
// ### Constructs a term from the given internal string ID
191+
// The third 'nested' parameter of this function is to aid
192+
// with recursion over nested terms. It should not be used
193+
// by consumers of this library.
194+
// See https://github.com/rdfjs/N3.js/pull/311#discussion_r1061042725
191195
export function termFromId(id, factory, nested) {
192196
factory = factory || DataFactory;
193197

@@ -230,6 +234,10 @@ export function termFromId(id, factory, nested) {
230234
}
231235

232236
// ### Constructs an internal string ID from the given term or ID string
237+
// The third 'nested' parameter of this function is to aid
238+
// with recursion over nested terms. It should not be used
239+
// by consumers of this library.
240+
// See https://github.com/rdfjs/N3.js/pull/311#discussion_r1061042725
233241
export function termToId(term, nested) {
234242
if (typeof term === 'string')
235243
return term;

0 commit comments

Comments
 (0)