import type { CodeSegmentMerger } from '@/application/Parser/Executable/Script/Compiler/Function/Call/Compiler/CodeSegmentJoin/CodeSegmentMerger'; import type { CompiledCode } from '@/application/Parser/Executable/Script/Compiler/Function/Call/Compiler/CompiledCode'; import { CompiledCodeStub } from './CompiledCodeStub'; import { StubWithObservableMethodCalls } from './StubWithObservableMethodCalls'; export class CodeSegmentMergerStub extends StubWithObservableMethodCalls implements CodeSegmentMerger { public mergeCodeParts(codeSegments: readonly CompiledCode[]): CompiledCode { this.registerMethodCall({ methodName: 'mergeCodeParts', args: [codeSegments], }); return new CompiledCodeStub(); } }