Beispiel #1
0
        private IterateTunnel(Structure parentStructure, IterateTunnel toCopy, NodeCopyInfo copyInfo)
            : base(parentStructure, toCopy, copyInfo)
        {
            Node mappedTunnel;

            if (copyInfo.TryGetMappingFor(toCopy.TerminateLifetimeTunnel, out mappedTunnel))
            {
                TerminateLifetimeTunnel = (TerminateLifetimeTunnel)mappedTunnel;
                TerminateLifetimeTunnel.BeginLifetimeTunnel = this;
            }
        }
Beispiel #2
0
        private TerminateLifetimeTunnel(Structure parentStructure, TerminateLifetimeTunnel toCopy, NodeCopyInfo copyInfo)
            : base(parentStructure, toCopy, copyInfo)
        {
            Node mappedTunnel;

            if (copyInfo.TryGetMappingFor((BorderNode)toCopy.BeginLifetimeTunnel, out mappedTunnel))
            {
                BeginLifetimeTunnel = (IBeginLifetimeTunnel)mappedTunnel;
                BeginLifetimeTunnel.TerminateLifetimeTunnel = this;
            }
        }
Beispiel #3
0
        private IterateTunnel(Structure parentStructure, IterateTunnel toCopy, NodeCopyInfo copyInfo)
            : base(parentStructure, toCopy, copyInfo)
        {
            IteratorNextFunctionType = toCopy.IteratorNextFunctionType;
            Node mappedTunnel;

            if (copyInfo.TryGetMappingFor(toCopy.TerminateLifetimeTunnel, out mappedTunnel))
            {
                TerminateLifetimeTunnel = (TerminateLifetimeTunnel)mappedTunnel;
                TerminateLifetimeTunnel.BeginLifetimeTunnel = this;
            }
            IntermediateValueVariable = toCopy.IntermediateValueVariable;
        }