/// <summary>
        /// Writes the method semantics table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteMethodSemanticsTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            WriteTable(TokenTypes.MethodSemantics, metadataSource, token =>
            {
                MethodSemanticsRow row = metadataSource.ReadMethodSemanticsRow(token);

                metadataWriter.Write((ushort)row.Semantics);
                metadataWriter.Write(row.MethodTableIdx);
                metadataWriter.WriteHasSemanticsIndex(row.AssociationTableIdx);
            });
        }