This commit consolidates scripts and categories under a unified 'Executable' concept. This simplifies the architecture and improves code readability. - Introduce subfolders within `src/domain` to segregate domain elements. - Update class and interface names by removing the 'I' prefix in alignment with new coding standards. - Replace 'Node' with 'Executable' to clarify usage; reserve 'Node' exclusively for the UI's tree component.
29 lines
871 B
TypeScript
29 lines
871 B
TypeScript
import type { FunctionCall } from '@/application/Parser/Executable/Script/Compiler/Function/Call/FunctionCall';
|
|
import { FunctionCallArgumentCollectionStub } from './FunctionCallArgumentCollectionStub';
|
|
|
|
export class FunctionCallStub implements FunctionCall {
|
|
public functionName = 'functionCallStub';
|
|
|
|
public args = new FunctionCallArgumentCollectionStub();
|
|
|
|
public withFunctionName(functionName: string) {
|
|
this.functionName = functionName;
|
|
return this;
|
|
}
|
|
|
|
public withArgument(parameterName: string, argumentValue: string) {
|
|
this.args.withArgument(parameterName, argumentValue);
|
|
return this;
|
|
}
|
|
|
|
public withArguments(args: { readonly [index: string]: string }) {
|
|
this.args.withArguments(args);
|
|
return this;
|
|
}
|
|
|
|
public withArgumentCollection(args: FunctionCallArgumentCollectionStub) {
|
|
this.args = args;
|
|
return this;
|
|
}
|
|
}
|