示例#1
0
            /// <summary>
            /// Constructs a new builder.
            /// </summary>
            /// <param name="methodBuilder">The parent method builder.</param>
            /// <param name="block">The parent block.</param>
            internal Builder(Method.Builder methodBuilder, BasicBlock block)
                : base(block)
            {
                MethodBuilder = methodBuilder;

                values         = block.values;
                insertPosition = Count;
                block.CompactTerminator();
            }
示例#2
0
            /// <summary>
            /// Constructs a new builder.
            /// </summary>
            /// <param name="methodBuilder">The parent method builder.</param>
            /// <param name="block">The parent block.</param>
            internal Builder(Method.Builder methodBuilder, BasicBlock block)
                : base(block)
            {
                Debug.Assert(methodBuilder != null, "Invalid method builder");
                Debug.Assert(block != null, "Invalid block");
                MethodBuilder = methodBuilder;

                values         = block.values;
                insertPosition = Count;
                block.CompactTerminator();
            }