Function createParsePipeline
createParsePipeline( parser: TreeSitterExecutor, inputs: Omit<ParseRequiredInput<string>, "parser">,): PipelineExecutor< Pipeline< { dependencies: readonly []; description: "Parse the given R code into an AST using tree-sitter"; executed: OncePerFile; humanReadableName: "parse with tree-sitter"; name: "parse"; printer: { "0": <Input>(input: Input) => Input; "2": { ( value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number, ): string; ( value: any, replacer?: null | (
string | number)
[], space?: string | number, ): string; }; }; processor: ( _results: unknown, input: Partial<ParseRequiredInput<Tree>>, ) => Promise<ParseStepOutput<Tree>>; requiredInput: ParseRequiredInput<Tree>; }, >,> Returns PipelineExecutor<
Pipeline<
{
dependencies: readonly [];
description: "Parse the given R code into an AST using tree-sitter";
executed: OncePerFile;
humanReadableName: "parse with tree-sitter";
name: "parse";
printer: {
"0": <Input>(input: Input) => Input;
"2": {
(
value: any,
replacer?: (this: any, key: string, value: any) => any,
space?: string | number,
): string;
(
value: any,
replacer?: null | (string | number)[],
space?: string | number,
): string;
};
};
processor: (
_results: unknown,
input: Partial<ParseRequiredInput<Tree>>,
) => Promise<ParseStepOutput<Tree>>;
requiredInput: ParseRequiredInput<Tree>;
},
>,
>
createParsePipeline( parser: RShell, inputs: Omit<ParseRequiredInput<string>, "parser">,): PipelineExecutor< Pipeline< { dependencies: readonly []; description: "Parse the given R code into an AST"; executed: OncePerFile; humanReadableName: "parse with R shell"; name: "parse"; printer: { "0": <Input>(input: Input) => Input; "2": { ( value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number, ): string; ( value: any, replacer?: null | (
string | number)
[], space?: string | number, ): string; }; "5": ( __namedParameters: ParseStepOutput<string>, config: QuadSerializationConfiguration, ) => string; }; processor: ( _results: unknown, input: Partial<ParseRequiredInput<string>>, ) => Promise<ParseStepOutput<string>>; requiredInput: ParseRequiredInput<string>; }, >,> Returns PipelineExecutor<
Pipeline<
{
dependencies: readonly [];
description: "Parse the given R code into an AST";
executed: OncePerFile;
humanReadableName: "parse with R shell";
name: "parse";
printer: {
"0": <Input>(input: Input) => Input;
"2": {
(
value: any,
replacer?: (this: any, key: string, value: any) => any,
space?: string | number,
): string;
(
value: any,
replacer?: null | (string | number)[],
space?: string | number,
): string;
};
"5": (
__namedParameters: ParseStepOutput<string>,
config: QuadSerializationConfiguration,
) => string;
};
processor: (
_results: unknown,
input: Partial<ParseRequiredInput<string>>,
) => Promise<ParseStepOutput<string>>;
requiredInput: ParseRequiredInput<string>;
},
>,
>
createParsePipeline( parser: KnownParser, inputs: Omit<ParseRequiredInput<string>, "parser">,): | PipelineExecutor< Pipeline< { dependencies: readonly []; description: "Parse the given R code into an AST using tree-sitter"; executed: OncePerFile; humanReadableName: "parse with tree-sitter"; name: "parse"; printer: { "0": <Input>(input: Input) => Input; "2": { ( value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number, ): string; ( value: any, replacer?: null | (
string | number)
[], space?: string | number, ): string; }; }; processor: ( _results: unknown, input: Partial<ParseRequiredInput<Tree>>, ) => Promise<ParseStepOutput<Tree>>; requiredInput: ParseRequiredInput<Tree>; }, >, > | PipelineExecutor< Pipeline< { dependencies: readonly []; description: "Parse the given R code into an AST"; executed: OncePerFile; humanReadableName: "parse with R shell"; name: "parse"; printer: { "0": <Input>(input: Input) => Input; "2": { ( value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number, ): string; ( value: any, replacer?: null | (
string | number)
[], space?: string | number, ): string; }; "5": ( __namedParameters: ParseStepOutput<string>, config: QuadSerializationConfiguration, ) => string; }; processor: ( _results: unknown, input: Partial<ParseRequiredInput<string>>, ) => Promise<ParseStepOutput<string>>; requiredInput: ParseRequiredInput<string>; }, >, > Returns
| PipelineExecutor<
Pipeline<
{
dependencies: readonly [];
description: "Parse the given R code into an AST using tree-sitter";
executed: OncePerFile;
humanReadableName: "parse with tree-sitter";
name: "parse";
printer: {
"0": <Input>(input: Input) => Input;
"2": {
(
value: any,
replacer?: (this: any, key: string, value: any) => any,
space?: string | number,
): string;
(
value: any,
replacer?: null | (string | number)[],
space?: string | number,
): string;
};
};
processor: (
_results: unknown,
input: Partial<ParseRequiredInput<Tree>>,
) => Promise<ParseStepOutput<Tree>>;
requiredInput: ParseRequiredInput<Tree>;
},
>,
>
| PipelineExecutor<
Pipeline<
{
dependencies: readonly [];
description: "Parse the given R code into an AST";
executed: OncePerFile;
humanReadableName: "parse with R shell";
name: "parse";
printer: {
"0": <Input>(input: Input) => Input;
"2": {
(
value: any,
replacer?: (this: any, key: string, value: any) => any,
space?: string | number,
): string;
(
value: any,
replacer?: null | (string | number)[],
space?: string | number,
): string;
};
"5": (
__namedParameters: ParseStepOutput<string>,
config: QuadSerializationConfiguration,
) => string;
};
processor: (
_results: unknown,
input: Partial<ParseRequiredInput<string>>,
) => Promise<ParseStepOutput<string>>;
requiredInput: ParseRequiredInput<string>;
},
>,
>
Returns either a DEFAULT_PARSE_PIPELINE or a TREE_SITTER_PARSE_PIPELINE depending on the parser used.
See
createNormalizePipeline, createDataflowPipeline, createSlicePipeline