Skip to content

Commit 3ebf013

Browse files
authored
Add Doc comments for IntrinsicIds (#3063)
1 parent 6000a84 commit 3ebf013

File tree

1 file changed

+222
-3
lines changed

1 file changed

+222
-3
lines changed

src/ILLink.Shared/TrimAnalysis/IntrinsicId.cs

Lines changed: 222 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ enum IntrinsicId
2323
/// </summary>
2424
Type_get_TypeHandle,
2525
/// <summary>
26-
/// <see cref="System.Object.GetType()"/>
26+
/// <see cref="object.GetType()"/>
2727
/// </summary>
2828
Object_GetType,
2929
/// <summary>
@@ -39,8 +39,10 @@ enum IntrinsicId
3939
/// </summary>
4040
TypeInfo_AsType,
4141
/// <summary>
42-
/// <see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle)"/> or
43-
/// <see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle, System.RuntimeTypeHandle)"/>
42+
/// <list type="table">
43+
/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle)"/></item>
44+
/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle, System.RuntimeTypeHandle)"/></item>
45+
/// </list>
4446
/// </summary>
4547
MethodBase_GetMethodFromHandle,
4648
/// <summary>
@@ -51,50 +53,267 @@ enum IntrinsicId
5153
// Anything above this marker will require the method to be run through
5254
// the reflection body scanner.
5355
RequiresReflectionBodyScanner_Sentinel = 1000,
56+
/// <summary>
57+
/// <see cref="System.Type.MakeGenericType(System.Type[])"/>
58+
/// </summary>
5459
Type_MakeGenericType,
60+
/// <summary>
61+
/// <list type="table">
62+
/// <item><see cref="System.Type.GetType(string)"/></item>
63+
/// <item><see cref= "System.Type.GetType(string, bool)" /></item>
64+
/// <item><see cref="System.Type.GetType(string, bool, bool)"/></item>
65+
/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?)"/></item>
66+
/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool)"/></item>
67+
/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool, bool)"/></item>
68+
/// </list>
69+
/// </summary>
5570
Type_GetType,
71+
/// <summary>
72+
/// <item><see cref="System.Type.GetConstructor(System.Type[])"/></item>
73+
/// <item><see cref="System.Type.GetConstructor(System.Reflection.BindingFlags, System.Type[])"/></item>
74+
/// <item><see cref="System.Type.GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder?, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
75+
/// <item><see cref="System.Type.GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder?, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
76+
/// </list>
77+
/// </summary>
5678
Type_GetConstructor,
79+
/// <summary>
80+
/// <see cref="System.Type.GetConstructors(System.Reflection.BindingFlags)"/>
81+
/// </summary>
5782
Type_GetConstructors__BindingFlags,
83+
/// <summary>
84+
/// <item><see cref="System.Type.GetMethod(string)"/></item>
85+
/// <item><see cref="System.Type.GetMethod(string, System.Reflection.BindingFlags)"/></item>
86+
/// <item><see cref="System.Type.GetMethod(string, System.Type[])"/></item>
87+
/// <item><see cref="System.Type.GetMethod(string, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
88+
/// <item><see cref="System.Type.GetMethod(string, System.Reflection.BindingFlags, System.Type[])"/></item>
89+
/// <item><see cref="System.Type.GetMethod(string, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
90+
/// <item><see cref="System.Type.GetMethod(string, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
91+
/// <item><see cref="System.Type.GetMethod(string, int, System.Type[])"/></item>
92+
/// <item><see cref="System.Type.GetMethod(string, int, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
93+
/// <item><see cref="System.Type.GetMethod(string, int, System.Reflection.BindingFlags, System.Reflection.Binder?, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
94+
/// <item><see cref="System.Type.GetMethod(string, int, System.Reflection.BindingFlags, System.Reflection.Binder?, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
95+
/// </list>
96+
/// </summary>
5897
Type_GetMethod,
98+
/// <summary>
99+
/// <see cref="System.Type.GetMethod(System.Reflection.BindingFlags)"/>
100+
/// </summary>
59101
Type_GetMethods__BindingFlags,
102+
/// <summary>
103+
/// <list type="table">
104+
/// <item><see cref="System.Type.GetField(string)"/></item>
105+
/// <item><see cref="System.Type.GetField(string, System.Reflection.BindingFlags)"/></item>
106+
/// </list>
107+
/// </summary>
60108
Type_GetField,
109+
/// <summary>
110+
/// <see cref="System.Type.GetFields(System.Reflection.BindingFlags)"/>
111+
/// </summary>
61112
Type_GetFields__BindingFlags,
113+
/// <summary>
114+
/// <list type="table">
115+
/// <item><see cref="System.Type.GetProperty(string)"/></item>
116+
/// <item><see cref="System.Type.GetProperty(string, System.Reflection.BindingFlags)"/></item>
117+
/// <item><see cref="System.Type.GetProperty(string, System.Type?)"/></item>
118+
/// <item><see cref="System.Type.GetProperty(string, System.Type[])"/></item>
119+
/// <item><see cref="System.Type.GetProperty(string, System.Type?, System.Type[])"/></item>
120+
/// <item><see cref="System.Type.GetProperty(string, System.Type?, System.Type[], System.Reflection.ParameterModifier[])"/></item>
121+
/// <item><see cref="System.Type.GetProperty(string, System.Reflection.BindingFlags, System.Reflection.Binder?, System.Type?, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
122+
/// </list>
123+
/// </summary>
62124
Type_GetProperty,
125+
/// <summary>
126+
/// <see cref="System.Type.GetProperties(System.Reflection.BindingFlags)"/>
127+
/// </summary>
63128
Type_GetProperties__BindingFlags,
129+
/// <summary>
130+
/// <list type="table">
131+
/// <item><see cref="System.Type.GetEvent(string)"/></item>
132+
/// <item><see cref="System.Type.GetEvent(string, System.Reflection.BindingFlags)"/></item>
133+
/// </list>
134+
/// </summary>
64135
Type_GetEvent,
136+
/// <summary>
137+
/// <see cref="System.Type.GetEvents(System.Reflection.BindingFlags)"/>
138+
/// </summary>
65139
Type_GetEvents__BindingFlags,
140+
/// <summary>
141+
/// <list type="table">
142+
/// <item><see cref="System.Type.GetNestedType(string)"/></item>
143+
/// <item><see cref="System.Type.GetNestedType(string, System.Reflection.BindingFlags)"/></item>
144+
/// </list>
145+
/// </summary>
66146
Type_GetNestedType,
147+
/// <summary>
148+
/// <see cref="System.Type.GetNestedTypes(System.Reflection.BindingFlags)"/>
149+
/// </summary>
67150
Type_GetNestedTypes__BindingFlags,
151+
/// <summary>
152+
/// <list type="table">
153+
/// <item><see cref="System.Type.GetMember(string)"/></item>
154+
/// <item><see cref="System.Type.GetMember(string, System.Reflection.BindingFlags)"/></item>
155+
/// <item><see cref="System.Type.GetMember(string, System.Reflection.MemberTypes, System.Reflection.BindingFlags)"/></item>
156+
/// </list>
157+
/// </summary>
68158
Type_GetMember,
159+
/// <summary>
160+
/// <see cref="System.Type.GetMembers(System.Reflection.BindingFlags)"/>
161+
/// </summary>
69162
Type_GetMembers__BindingFlags,
163+
/// <summary>
164+
/// <list type="table">
165+
/// <item><see cref="System.Type.GetInterface(string)"/></item>
166+
/// <item><see cref="System.Type.GetInterface(string, bool)"/></item>
167+
/// </list>
168+
/// </summary>
70169
Type_GetInterface,
170+
/// <summary>
171+
/// <see cref="System.Type.AssemblyQualifiedName"/>
172+
/// </summary>
71173
Type_get_AssemblyQualifiedName,
174+
/// <summary>
175+
/// <see cref="System.Type.UnderlyingSystemType"/>
176+
/// </summary>
72177
Type_get_UnderlyingSystemType,
178+
/// <summary>
179+
/// <see cref="System.Type.BaseType"/>
180+
/// </summary>
73181
Type_get_BaseType,
182+
/// <summary>
183+
/// <see cref="System.Linq.Expressions.Expression.Call(System.Type, string, System.Type[]?, System.Linq.Expressions.Expression[]?))"/>
184+
/// </summary>
74185
Expression_Call,
186+
/// <summary>
187+
/// <see cref="System.Linq.Expressions.Expression.Field(System.Linq.Expressions.Expression?, System.Type, string)"/>
188+
/// </summary>
75189
Expression_Field,
190+
/// <summary>
191+
/// <list type="table">
192+
/// <item><see cref="System.Linq.Expressions.Expression.Property(System.Linq.Expressions.Expression?, System.Reflection.MethodInfo)"/></item>
193+
/// <item><see cref="System.Linq.Expressions.Expression.Property(System.Linq.Expressions.Expression?, System.Type, string)"/></item>
194+
/// </list>
195+
/// </summary>
76196
Expression_Property,
197+
/// <summary>
198+
/// <see cref="System.Linq.Expressions.Expression.New(System.Type)"/>
199+
/// </summary>
77200
Expression_New,
201+
/// <summary>
202+
/// <see cref="System.Enum.GetValues(System.Type)"/>
203+
/// </summary>
78204
Enum_GetValues,
205+
/// <summary>
206+
/// <see cref="System.Runtime.InteropServices.Marshal.SizeOf(System.Type)"/>
207+
/// </summary>
79208
Marshal_SizeOf,
209+
/// <summary>
210+
/// <see cref="System.Runtime.InteropServices.Marshal.OffsetOf(System.Type, string)"/>
211+
/// </summary>
80212
Marshal_OffsetOf,
213+
/// <summary>
214+
/// <see cref="System.Runtime.InteropServices.Marshal.PtrToStructure(nint, System.Type)"/>
215+
/// </summary>
81216
Marshal_PtrToStructure,
217+
/// <summary>
218+
/// <see cref="System.Runtime.InteropServices.Marshal.DestroyStructure(nint, System.Type)"/>
219+
/// </summary>
82220
Marshal_DestroyStructure,
221+
/// <summary>
222+
/// <see cref="System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(nint, System.Type)"/>
223+
/// </summary>
83224
Marshal_GetDelegateForFunctionPointer,
225+
/// <list type="table">
226+
/// <item><see cref="System.Activator.CreateInstance(System.Type)"/></item>
227+
/// <item><see cref="System.Activator.CreateInstance(System.Type, bool)"/></item>
228+
/// <item><see cref="System.Activator.CreateInstance(System.Type, object[])"/></item>
229+
/// <item><see cref="System.Activator.CreateInstance(System.Type, object[], object[])"/></item>
230+
/// <item><see cref="System.Activator.CreateInstance(System.Type, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo)"/></item>
231+
/// <item><see cref="System.Activator.CreateInstance(System.Type, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
232+
/// </list>
84233
Activator_CreateInstance__Type,
234+
/// <summary>
235+
/// <list type="table">
236+
/// <item><see cref="System.Activator.CreateInstance(string, string)"/></item>
237+
/// <item><see cref="System.Activator.CreateInstance(string, string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
238+
/// <item><see cref="System.Activator.CreateInstance(string, string, object[])"/></item>
239+
/// </list>
240+
/// </summary>
85241
Activator_CreateInstance__AssemblyName_TypeName,
242+
/// <summary>
243+
/// <list type="table">
244+
/// <item><see cref="System.Activator.CreateInstanceFrom(string, string)"/></item>
245+
/// <item><see cref="System.Activator.CreateInstanceFrom(string, string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
246+
/// <item><see cref="System.Activator.CreateInstanceFrom(string, string, object[])"/></item>
247+
/// </list>
248+
/// </summary>
86249
Activator_CreateInstanceFrom,
250+
/// <summary>
251+
/// <list type="table">
252+
/// <item><see cref="System.AppDomain.CreateInstance(string, string)"/></item>
253+
/// <item><see cref="System.AppDomain.CreateInstance(string, string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
254+
/// <item><see cref="System.AppDomain.CreateInstance(string, string, object[])"/></item>
255+
/// </list>
256+
/// </summary>
87257
AppDomain_CreateInstance,
258+
/// <summary>
259+
/// <list type="table">
260+
/// <item><see cref="System.AppDomain.CreateInstanceAndUnwrap(string, string)"/></item>
261+
/// <item><see cref="System.AppDomain.CreateInstanceAndUnwrap(string, string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
262+
/// <item><see cref="System.AppDomain.CreateInstanceAndUnwrap(string, string, object[])"/></item>
263+
/// </list>
264+
/// </summary>
88265
AppDomain_CreateInstanceAndUnwrap,
266+
/// <summary>
267+
/// <list type="table">
268+
/// <item><see cref="System.AppDomain.CreateInstanceFrom(string, string)"/></item>
269+
/// <item><see cref="System.AppDomain.CreateInstanceFrom(string, string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
270+
/// <item><see cref="System.AppDomain.CreateInstanceFrom(string, string, object[])"/></item>
271+
/// </list>
272+
/// </summary>
89273
AppDomain_CreateInstanceFrom,
274+
/// <summary>
275+
/// <list type="table">
276+
/// <item><see cref="System.AppDomain.CreateInstanceFromAndUnwrap(string, string)"/></item>
277+
/// <item><see cref="System.AppDomain.CreateInstanceFromAndUnwrap(string, string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
278+
/// <item><see cref="System.AppDomain.CreateInstanceFromAndUnwrap(string, string, object[])"/></item>
279+
/// </list>
280+
/// </summary>
90281
AppDomain_CreateInstanceFromAndUnwrap,
282+
/// <summary>
283+
/// <list type="table">
284+
/// <item><see cref="System.Reflection.Assembly.CreateInstance(string)"/></item>
285+
/// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool)"/></item>
286+
/// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
287+
/// </list>
288+
/// </summary>
91289
Assembly_CreateInstance,
290+
/// <summary>
291+
/// <see cref="System.Reflection.RuntimeReflectionExtensions.GetRuntimeEvent(System.Type, string)"/>
292+
/// </summary>
92293
RuntimeReflectionExtensions_GetRuntimeEvent,
294+
/// <summary>
295+
/// <see cref="System.Reflection.RuntimeReflectionExtensions.GetRuntimeField(System.Type, string)"/>
296+
/// </summary>
93297
RuntimeReflectionExtensions_GetRuntimeField,
298+
/// <summary>
299+
/// <see cref="System.Reflection.RuntimeReflectionExtensions.GetRuntimeMethod(System.Type, string, System.Type[])"/>
300+
/// </summary>
94301
RuntimeReflectionExtensions_GetRuntimeMethod,
302+
/// <summary>
303+
/// <see cref="System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperty(System.Type, string)"/>
304+
/// </summary>
95305
RuntimeReflectionExtensions_GetRuntimeProperty,
306+
/// <summary>
307+
/// <see cref="System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.RuntimeTypeHandle)"/>
308+
/// </summary>
96309
RuntimeHelpers_RunClassConstructor,
310+
/// <summary>
311+
/// <see cref="System.Reflection.MethodInfo.MakeGenericMethod(System.Type[])"/>
312+
/// </summary>
97313
MethodInfo_MakeGenericMethod,
314+
/// <summary>
315+
/// <see cref="System.Nullable.GetUnderlyingType(System.Type)"/>
316+
/// </summary>
98317
Nullable_GetUnderlyingType
99318
}
100319
}

0 commit comments

Comments
 (0)