the AstNode corresponding to the appended content
Optional
property: Properties<T>the value property name (string) corresponding to the appended content,
if e.g. the content corresponds to some string
or number
property of astNode
, is optional
a function behaving as described above, which in turn returns a CompositeGeneratorNode.
Optional
toGenerated: ((element: E, index: number, isLast: boolean) => Generated) | JoinOptions<E>Optional
options: JoinOptions<E>Convenience function for joining the elements of some iterable
and gathering tracing information
in form of concrete coordinates.
This function returns another function that does the processing, and that expects same list of
arguments as expected by joinToNode, i.e. an iterable
, a function toGenerated
converting each element into a Generated
, as well as some options
.
That function then joins the elements of iterable
by delegating to joinToNode.
Via traceToNode the resulting generator node is supplemented with the provided tracing
information, and finally returned. Elementwise tracing need to be implemented by client code
within toGenerated
, if required.
a text region within some file in form of concrete coordinates,
if undefined
no tracing will happen
a function behaving as described above, which in turn returns a CompositeGeneratorNode.
Optional
toGenerated: ((element: E, index: number, isLast: boolean) => Generated) | JoinOptions<E>Optional
options: JoinOptions<E>Convenience function for joining the elements of some iterable
and gathering tracing information
in form of a list of concrete coordinates.
This function returns another function that does the processing, and that expects same list of
arguments as expected by joinToNode, i.e. an iterable
, a function toGenerated
converting each element into a Generated
, as well as some options
.
That function then joins the elements of iterable
by delegating to joinToNode.
Via traceToNode the resulting generator node is supplemented with the provided tracing
information, and finally returned. Elementwise tracing need to be implemented by client code
within toGenerated
, if required.
The list of regions in sourceRegions
will later be reduced to the smallest encompassing region
of all the contained source regions.
a list of text regions within some file in form of concrete coordinates, if empty no tracing will happen
a function behaving as described above, which in turn returns a CompositeGeneratorNode.
Optional
toGenerated: ((element: E, index: number, isLast: boolean) => Generated) | JoinOptions<E>Optional
options: JoinOptions<E>
Convenience function for joining the elements of some
iterable
and gathering tracing information.This function returns another function that does the processing, and that expects same list of arguments as expected by joinToNode, i.e. an
iterable
, a functiontoGenerated
converting each element into aGenerated
, as well as someoptions
.That function then joins the elements of
iterable
by delegating to joinToNode. Via traceToNode the resulting generator node is supplemented with the provided tracing information in form of{astNode, property?, index?}
, and finally returned. In addition, ifproperty
is given each element's generator node representation is augmented with the provided tracing information plus the index of the element withiniterable
.