Optionalargs: Partial<AstCoreFactoryArgs>Whether this AstFactory will track source location. Default: true. In case source location is not tracked, each generated node using this factory will be SourceLocationNodeAutoGenerate
Given a (AST) tree, return a copy of that tree where it and it's descendents all have a SourceLocationNodeAutoGenerate localization.
Create a SourceLocation indicating the node should be autoGenerated by a generator.
Whether the provided value is an object that tracks source location.
Check whether the provided SourceLocation expects the generator to autoGenerate.
Check whether an object is in fact a SourceLocation.
Guard to check if an object is a SourceLocation of type SourceLocationInlinedSource.
Guard to check if an object is a SourceLocation of type SourceLocationNodeAutoGenerate.
Guard to check if an object is a SourceLocation of type SourceLocationNodeReplace.
Guard to check if an object is a SourceLocation of type SourceLocationNoMaterialize.
Guard to check if an object is a SourceLocation of type SourceLocationSource.
Guard to check if an object is a SourceLocation of type SourceLocationStringReplace.
A simple filter that will only execute the provided callback when the provided SourceLocation expects the generator steps to autoGenerate.
Optionalvalues: PatternValuesGiven a value and some mapper from objects to objects, map all containing items in case it is an array, otherwise map the provided value in case it is an object, finally, do nothing.
the value to map
the function mapping an object to another object.
Compute the source location of an element based on the elements it contains. The provided arguments should be in order of occurrence in the string.
Create a SourceLocation that indicates a given range of the current range should be replaced by a new source.
OptionalstartOnNew: numberOptionalendOnNew: numberGiven a sourceLocation, generate a new SourceLocation that indicates the range of the given location should now be autoGenerated
Generate a source location indicating the no materialization.
Create a SourceLocation that indicates what range of characters this node represents in the source string.
Create a SourceLocation that indicates this node, representing a range of characters in the original string, should be replaced by some string during generation.
String, no lang, no type
Optionallang: undefinedString with a language tag
Lexical form with a type
String, no lang, no type
OptionallangOrIri: string | TermIriA namednode with fully defined with a uri.
Optionalprefix: undefinedA namednode defined using a prefix
Optionalloc: SourceLocationOptionaldestination: GraphRefSpecificOptionalgraph: TermIriWrap any type into an object that tracks the source location of tha value.
the value to wrap
the source location for that value
A factory that helps you create, and check types for AST nodes for SPARQL 1.1