Skip to content

Commit 46ed09f

Browse files
carlossanlopRon Petrusha
authored andcommitted
Automatically port Reflection.Metadata.Ecma335 Method* APIs (#3211)
* Automatically port Reflection.Metadata.Ecma335 Method* APIs * suggestions by rpetrusha Co-Authored-By: Ron Petrusha <[email protected]> * Disambiguate constructors * Type descriptions
1 parent 1a0a2c8 commit 46ed09f

File tree

4 files changed

+50
-50
lines changed

4 files changed

+50
-50
lines changed

xml/System.Reflection.Metadata.Ecma335/MethodBodyAttributes.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</Attribute>
2222
</Attributes>
2323
<Docs>
24-
<summary>To be added.</summary>
24+
<summary>Defines method body attributes.</summary>
2525
<remarks>To be added.</remarks>
2626
</Docs>
2727
<Members>
@@ -45,7 +45,7 @@
4545
</ReturnValue>
4646
<MemberValue>1</MemberValue>
4747
<Docs>
48-
<summary>To be added.</summary>
48+
<summary>Initializes any locals the method defines to zero and dynamically allocates local memory.</summary>
4949
</Docs>
5050
</Member>
5151
<Member MemberName="None">
@@ -68,7 +68,7 @@
6868
</ReturnValue>
6969
<MemberValue>0</MemberValue>
7070
<Docs>
71-
<summary>To be added.</summary>
71+
<summary>Performs no local memory initialization.</summary>
7272
</Docs>
7373
</Member>
7474
</Members>

xml/System.Reflection.Metadata.Ecma335/MethodBodyStreamEncoder+MethodBody.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</Attribute>
2323
</Attributes>
2424
<Docs>
25-
<summary>To be added.</summary>
25+
<summary>Describes a method body. This class is meant to used along with the <see cref="T:System.Reflection.Metadata.Ecma335.MethodBodyStreamEncoder" /> class.</summary>
2626
<remarks>To be added.</remarks>
2727
</Docs>
2828
<Members>
@@ -45,8 +45,8 @@
4545
<ReturnType>System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder</ReturnType>
4646
</ReturnValue>
4747
<Docs>
48-
<summary>To be added.</summary>
49-
<value>To be added.</value>
48+
<summary>Gets an encoder object that can be used to encode exception regions to the method body.</summary>
49+
<value>An exception region encoder instance.</value>
5050
<remarks>To be added.</remarks>
5151
</Docs>
5252
</Member>
@@ -69,8 +69,8 @@
6969
<ReturnType>System.Reflection.Metadata.Blob</ReturnType>
7070
</ReturnValue>
7171
<Docs>
72-
<summary>To be added.</summary>
73-
<value>To be added.</value>
72+
<summary>Gets a blob reserved for instructions.</summary>
73+
<value>A blob reserved for instructions.</value>
7474
<remarks>To be added.</remarks>
7575
</Docs>
7676
</Member>
@@ -93,8 +93,8 @@
9393
<ReturnType>System.Int32</ReturnType>
9494
</ReturnValue>
9595
<Docs>
96-
<summary>To be added.</summary>
97-
<value>To be added.</value>
96+
<summary>Gets the offset of the encoded method body in the method body stream.</summary>
97+
<value>The offset of the encoded method body in the method body stream.</value>
9898
<remarks>To be added.</remarks>
9999
</Docs>
100100
</Member>

xml/System.Reflection.Metadata.Ecma335/MethodBodyStreamEncoder.xml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</Attribute>
2323
</Attributes>
2424
<Docs>
25-
<summary>To be added.</summary>
25+
<summary>Provides an encoder for a method body stream.</summary>
2626
<remarks>To be added.</remarks>
2727
</Docs>
2828
<Members>
@@ -75,12 +75,12 @@
7575
<Parameter Name="attributes" Type="System.Reflection.Metadata.Ecma335.MethodBodyAttributes" />
7676
</Parameters>
7777
<Docs>
78-
<param name="instructionEncoder">To be added.</param>
79-
<param name="maxStack">To be added.</param>
80-
<param name="localVariablesSignature">To be added.</param>
81-
<param name="attributes">To be added.</param>
82-
<summary>To be added.</summary>
83-
<returns>To be added.</returns>
78+
<param name="instructionEncoder">The instruction encoder.</param>
79+
<param name="maxStack">The maximum stack size.</param>
80+
<param name="localVariablesSignature">The local variables' signature handle.</param>
81+
<param name="attributes">The method body attributes.</param>
82+
<summary>Encodes a method body and adds it to the method body stream.</summary>
83+
<returns>The offset of the encoded body within the method body stream.</returns>
8484
<remarks>To be added.</remarks>
8585
</Docs>
8686
</Member>
@@ -106,13 +106,13 @@
106106
<Parameter Name="hasDynamicStackAllocation" Type="System.Boolean" Index="4" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0" />
107107
</Parameters>
108108
<Docs>
109-
<param name="instructionEncoder">To be added.</param>
110-
<param name="maxStack">To be added.</param>
111-
<param name="localVariablesSignature">To be added.</param>
112-
<param name="attributes">To be added.</param>
113-
<param name="hasDynamicStackAllocation">To be added.</param>
114-
<summary>To be added.</summary>
115-
<returns>To be added.</returns>
109+
<param name="instructionEncoder">The instruction encoder.</param>
110+
<param name="maxStack">The maximum stack size.</param>
111+
<param name="localVariablesSignature">The local variables' signature handle.</param>
112+
<param name="attributes">The method body attributes.</param>
113+
<param name="hasDynamicStackAllocation"><see langword="true" /> if the method allocates from the dynamic local memory pool (the IL contains the <see langword="localloc" /> instruction); <see langword="false" /> otherwise.</param>
114+
<summary>Encodes a method body and adds it to the method body stream, using the provided instruction encoder, maximum stack size, local variables' signature handle, method body attributes, and allowing to indicate whether the method should allocate from the dynamic local memory pool or not.</summary>
115+
<returns>The offset of the encoded body within the method body stream.</returns>
116116
<remarks>To be added.</remarks>
117117
</Docs>
118118
</Member>
@@ -145,14 +145,14 @@
145145
<Parameter Name="attributes" Type="System.Reflection.Metadata.Ecma335.MethodBodyAttributes" />
146146
</Parameters>
147147
<Docs>
148-
<param name="codeSize">To be added.</param>
149-
<param name="maxStack">To be added.</param>
150-
<param name="exceptionRegionCount">To be added.</param>
151-
<param name="hasSmallExceptionRegions">To be added.</param>
152-
<param name="localVariablesSignature">To be added.</param>
153-
<param name="attributes">To be added.</param>
154-
<summary>To be added.</summary>
155-
<returns>To be added.</returns>
148+
<param name="codeSize">The number of bytes to be reserved for instructions.</param>
149+
<param name="maxStack">The maximum stack size.</param>
150+
<param name="exceptionRegionCount">The number of exception regions.</param>
151+
<param name="hasSmallExceptionRegions"><see langword="true" /> if the exception regions should be encoded in small format; <see langword="false" /> otherwise.</param>
152+
<param name="localVariablesSignature">The local variables' signature handle.</param>
153+
<param name="attributes">The method body attributes.</param>
154+
<summary>Encodes a method body and adds it to the method body stream, using the provided code size, maximum stack size, number of exception regions, local variables' signature handle, method body attributes and allowing to indicate whether the exception regions should be encoded in small format or not.</summary>
155+
<returns>The offset of the encoded body within the method body stream.</returns>
156156
<remarks>To be added.</remarks>
157157
</Docs>
158158
</Member>
@@ -181,15 +181,15 @@
181181
<Parameter Name="hasDynamicStackAllocation" Type="System.Boolean" Index="6" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0" />
182182
</Parameters>
183183
<Docs>
184-
<param name="codeSize">To be added.</param>
185-
<param name="maxStack">To be added.</param>
186-
<param name="exceptionRegionCount">To be added.</param>
187-
<param name="hasSmallExceptionRegions">To be added.</param>
188-
<param name="localVariablesSignature">To be added.</param>
189-
<param name="attributes">To be added.</param>
190-
<param name="hasDynamicStackAllocation">To be added.</param>
191-
<summary>To be added.</summary>
192-
<returns>To be added.</returns>
184+
<param name="codeSize">The number of bytes to be reserved for instructions.</param>
185+
<param name="maxStack">The maximum stack size.</param>
186+
<param name="exceptionRegionCount">The number of exception regions.</param>
187+
<param name="hasSmallExceptionRegions"><see langword="true" /> if the exception regions should be encoded in small format; <see langword="false" /> otherwise.</param>
188+
<param name="localVariablesSignature">The local variables' signature handle.</param>
189+
<param name="attributes">The method body attributes.</param>
190+
<param name="hasDynamicStackAllocation"><see langword="true" /> if the method allocates from the dynamic local memory pool (the <see langword="localloc" /> instruction); <see langword="false" /> otherwise.</param>
191+
<summary>Encodes a method body and adds it to the method body stream, using the provided code size, maximum stack size, number of exception regions, local variables' signature handle, method body attributes, allowing to indicate whether the exception regions should be encoded in small format or not, and allowing to indicate whether the method should allocate from the dynamic local memory pool or not.</summary>
192+
<returns>The offset of the encoded body within the method body stream.</returns>
193193
<remarks>To be added.</remarks>
194194
</Docs>
195195
</Member>

xml/System.Reflection.Metadata.Ecma335/MethodSignatureEncoder.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</Attribute>
2323
</Attributes>
2424
<Docs>
25-
<summary>To be added.</summary>
25+
<summary>Provides an encoder for method signatures.</summary>
2626
<remarks>To be added.</remarks>
2727
</Docs>
2828
<Members>
@@ -124,10 +124,10 @@
124124
<Parameter Name="parameters" Type="System.Action&lt;System.Reflection.Metadata.Ecma335.ParametersEncoder&gt;" Index="2" FrameworkAlternate="netcore-1.1;netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0" />
125125
</Parameters>
126126
<Docs>
127-
<param name="parameterCount">To be added.</param>
128-
<param name="returnType">To be added.</param>
129-
<param name="parameters">To be added.</param>
130-
<summary>To be added.</summary>
127+
<param name="parameterCount">The number of parameters.</param>
128+
<param name="returnType">The method that is called first to encode the return type.</param>
129+
<param name="parameters">The method that is called second to encode the parameters.</param>
130+
<summary>Encodes the provided return type and parameters.</summary>
131131
<remarks>To be added.</remarks>
132132
</Docs>
133133
</Member>
@@ -155,10 +155,10 @@
155155
<Parameter Name="parameters" Type="System.Reflection.Metadata.Ecma335.ParametersEncoder" RefType="out" Index="2" FrameworkAlternate="netcore-1.1;netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0" />
156156
</Parameters>
157157
<Docs>
158-
<param name="parameterCount">To be added.</param>
159-
<param name="returnType">To be added.</param>
160-
<param name="parameters">To be added.</param>
161-
<summary>To be added.</summary>
158+
<param name="parameterCount">The number of parameters.</param>
159+
<param name="returnType">The method that is called first to encode the return types.</param>
160+
<param name="parameters">The method that is called second to encode the parameters.</param>
161+
<summary>Encodes the provided return type and parameters, which must be used in the order they appear in the parameter list.</summary>
162162
<remarks>To be added.</remarks>
163163
</Docs>
164164
</Member>

0 commit comments

Comments
 (0)