60 references to ParameterTypesWithAnnotations
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_Expressions.cs (1)
9192
var parameterTypes = methodSymbol.
ParameterTypesWithAnnotations
;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1727
ExactInference(sourceSignature.
ParameterTypesWithAnnotations
[i], targetSignature.
ParameterTypesWithAnnotations
[i], ref useSiteInfo);
BoundTree\NullabilityRewriter.cs (1)
124
updatedLambda = boundLambda.CreateLambdaSymbol(updatedContaining, lambda.ReturnTypeWithAnnotations, lambda.
ParameterTypesWithAnnotations
, lambda.ParameterRefKinds, lambda.RefKind);
Compiler\ClsComplianceChecker.cs (4)
276
foreach (var paramType in constructor.
ParameterTypesWithAnnotations
) // Public caller would select type out of parameters.
630
foreach (var type in attribute.AttributeConstructor.
ParameterTypesWithAnnotations
)
1326
xParameterTypes = mX.
ParameterTypesWithAnnotations
;
1330
yParameterTypes = mY.
ParameterTypesWithAnnotations
;
FlowAnalysis\NullableWalker.cs (1)
3601
var parameterType = constructor.
ParameterTypesWithAnnotations
[0];
Lowering\LocalRewriter\LocalRewriter.cs (1)
354
predicate(localFunction.ReturnTypeWithAnnotations) || localFunction.
ParameterTypesWithAnnotations
.Any(predicate);
Symbols\AbstractTypeMap.cs (1)
244
var parameterTypesWithAnnotations = f.Signature.
ParameterTypesWithAnnotations
;
Symbols\ConversionSignatureComparer.cs (2)
52
&& member1.
ParameterTypesWithAnnotations
[0].Equals(member2.
ParameterTypesWithAnnotations
[0], TypeCompareKind.IgnoreDynamicAndTupleNames | TypeCompareKind.IgnoreNullableModifiersForReferenceTypes)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (3)
384
mergedParameterTypes =
ParameterTypesWithAnnotations
;
424
transformedParameterTypes =
ParameterTypesWithAnnotations
;
622
newParamTypes =
ParameterTypesWithAnnotations
;
Symbols\MemberSymbolExtensions.cs (1)
56
return ((MethodSymbol)member).
ParameterTypesWithAnnotations
;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
379
transformedParameters = paramsTransformed ? paramsBuilder.ToImmutable() : sig.
ParameterTypesWithAnnotations
;
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
204
transformedParameterTypes = type.Signature.
ParameterTypesWithAnnotations
;
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
233
parameterTypes = type.Signature.
ParameterTypesWithAnnotations
;
Symbols\MethodSymbol.cs (1)
896
internal TypeSymbol GetParameterType(int index) =>
ParameterTypesWithAnnotations
[index].Type;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
795
newParameterTypes = signature.
ParameterTypesWithAnnotations
;
Symbols\Source\LambdaSymbol.cs (2)
379
&&
ParameterTypesWithAnnotations
.SequenceEqual(lambda.
ParameterTypesWithAnnotations
, compareKind,
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2448
if (!op1.
ParameterTypesWithAnnotations
[p].Equals(op2.
ParameterTypesWithAnnotations
[p], TypeCompareKind.AllIgnoreOptions))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
790
? ((MethodSymbol)overridingMember).
ParameterTypesWithAnnotations
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1145
ParameterTypesWithAnnotations
.Any(static (p, cancellationTokenType) => p.Type.Equals(cancellationTokenType), cancellationTokenType))
Symbols\TypeSymbolExtensions.cs (1)
1976
paramTypes = funcPtrType.Signature.
ParameterTypesWithAnnotations
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenFunctionPointersTests.cs (4)
143
var funcPtr = m.
ParameterTypesWithAnnotations
[0].Type;
167
var funcPtr = m.
ParameterTypesWithAnnotations
[0].Type;
699
var paramModifiers = param.Signature.
ParameterTypesWithAnnotations
[0].CustomModifiers;
2544
Assert.Equal(i2, returnType.Signature.
ParameterTypesWithAnnotations
[0].Type);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_Tuples.cs (1)
280
foreach (var parameterType in methodSymbol.
ParameterTypesWithAnnotations
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
6933
OfType<MethodSymbol>().Single(m => m.
ParameterTypesWithAnnotations
[0].Equals(m.
ParameterTypesWithAnnotations
[1], TypeCompareKind.ConsiderEverything));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
DocumentationComments\CrefTests.cs (4)
2412
Single(method => method.
ParameterTypesWithAnnotations
.Single().SpecialType == SpecialType.System_Int32);
2597
Single(method => method.
ParameterTypesWithAnnotations
.First().SpecialType == SpecialType.System_Int32);
2805
Single(method => method.
ParameterTypesWithAnnotations
.Single().SpecialType == SpecialType.System_Int32);
2841
Single(method => method.
ParameterTypesWithAnnotations
.Single().SpecialType == SpecialType.System_Int32 && method.ReturnType.SpecialType == SpecialType.System_Int32);
Symbols\Source\CustomModifierCopyTests.cs (4)
778
Assert.Equal(SpecialType.System_Object, interfaceMethod.
ParameterTypesWithAnnotations
.Single().SpecialType);
779
Assert.Equal(TypeKind.Dynamic, classMethod.
ParameterTypesWithAnnotations
.Single().Type.TypeKind);
822
Assert.Equal(TypeKind.Dynamic, interfaceMethod.
ParameterTypesWithAnnotations
.Single().Type.TypeKind);
823
Assert.Equal(SpecialType.System_Object, classMethod.
ParameterTypesWithAnnotations
.Single().SpecialType);
Symbols\Source\EventTests.cs (12)
354
Assert.Equal(1, e1.AddMethod.
ParameterTypesWithAnnotations
.Length);
355
Assert.Equal("System.Action<dynamic>", e1.AddMethod.
ParameterTypesWithAnnotations
[0].ToTestDisplayString());
357
Assert.Equal(1, e1.RemoveMethod.
ParameterTypesWithAnnotations
.Length);
358
Assert.Equal("System.Action<dynamic>", e1.RemoveMethod.
ParameterTypesWithAnnotations
[0].ToTestDisplayString());
360
Assert.Equal(1, e2.AddMethod.
ParameterTypesWithAnnotations
.Length);
361
Assert.Equal("System.Action<dynamic>", e2.AddMethod.
ParameterTypesWithAnnotations
[0].ToTestDisplayString());
363
Assert.Equal(1, e2.RemoveMethod.
ParameterTypesWithAnnotations
.Length);
364
Assert.Equal("System.Action<dynamic>", e2.RemoveMethod.
ParameterTypesWithAnnotations
[0].ToTestDisplayString());
2269
Assert.Equal(baseEventType, event1.AddMethod.
ParameterTypesWithAnnotations
.Single().Type);
2270
Assert.Equal(baseEventType, event1.RemoveMethod.
ParameterTypesWithAnnotations
.Single().Type);
2276
Assert.Equal(baseEventType, event2.AddMethod.
ParameterTypesWithAnnotations
.Single().Type);
2277
Assert.Equal(baseEventType, event2.RemoveMethod.
ParameterTypesWithAnnotations
.Single().Type);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (4)
Metadata\WinMdEventTests.cs (4)
3583
Assert.Equal(eventType.Type, addMethod.
ParameterTypesWithAnnotations
.Single().Type);
3589
Assert.Equal(tokenType, removeMethod.
ParameterTypesWithAnnotations
.Single().Type);
3614
Assert.Equal(eventType, addMethod.
ParameterTypesWithAnnotations
.Single().Type);
3620
Assert.Equal(eventType, removeMethod.
ParameterTypesWithAnnotations
.Single().Type);