/// <summary> /// A class that traverses the contract, code and metadata models in depth first, left to right order. /// </summary> public CodeAndContractTraverser(IContractProvider/*?*/ contractProvider) { this.contractProvider = contractProvider; this.dispatchingVisitor = new ContractElementDispatcher() { traverser = this }; }
/// <summary> /// /// </summary> /// <param name="targetHost">An object representing the application that will host the copies made by this copier.</param> /// <param name="targetUnit">The unit of metadata into which copies made by this copier will be inserted.</param> public CodeAndContractShallowCopier(IMetadataHost targetHost, IUnit targetUnit) : base(targetHost, targetUnit) { this.dispatchingVisitor = new ContractElementDispatcher() { copier = this }; }