67 references to ParameterTypesWithAnnotations
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Expressions.cs (1)
11185
var parameterTypes = methodSymbol.
ParameterTypesWithAnnotations
;
Binder\Binder_Operators.cs (1)
3790
if (method.
ParameterTypesWithAnnotations
is [var typeWithAnnotations, ..])
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1904
ExactInference(sourceSignature.
ParameterTypesWithAnnotations
[i], targetSignature.
ParameterTypesWithAnnotations
[i], ref useSiteInfo);
BoundTree\NullabilityRewriter.cs (1)
209
updatedLambda = boundLambda.CreateLambdaSymbol(updatedContaining, lambda.ReturnTypeWithAnnotations, lambda.
ParameterTypesWithAnnotations
, lambda.ParameterRefKinds, lambda.RefKind);
Compiler\ClsComplianceChecker.cs (4)
283
foreach (var paramType in constructor.
ParameterTypesWithAnnotations
) // Public caller would select type out of parameters.
637
foreach (var type in attribute.AttributeConstructor.
ParameterTypesWithAnnotations
)
1333
xParameterTypes = mX.
ParameterTypesWithAnnotations
;
1337
yParameterTypes = mY.
ParameterTypesWithAnnotations
;
FlowAnalysis\NullableWalker.cs (3)
4221
var parameterType = constructor.
ParameterTypesWithAnnotations
[0];
5405
method.OriginalDefinition.
ParameterTypesWithAnnotations
,
12028
method.OriginalDefinition.
ParameterTypesWithAnnotations
,
Lowering\LocalRewriter\LocalRewriter.cs (1)
416
predicate(localFunction.ReturnTypeWithAnnotations) || localFunction.
ParameterTypesWithAnnotations
.Any(predicate);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
633
rewrittenOperand = _factory.Convert(method.
ParameterTypesWithAnnotations
[0].Type, rewrittenOperand);
656
rewrittenOperand = _factory.Convert(implicitOperator.
ParameterTypesWithAnnotations
[0].Type, rewrittenOperand);
690
rewrittenOperand = _factory.Convert(method.
ParameterTypesWithAnnotations
[0].Type, rewrittenOperand);
705
rewrittenOperand = _factory.Convert(method.
ParameterTypesWithAnnotations
[0].Type, rewrittenOperand);
Symbols\AbstractTypeMap.cs (1)
245
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)
386
mergedParameterTypes =
ParameterTypesWithAnnotations
;
426
transformedParameterTypes =
ParameterTypesWithAnnotations
;
625
newParamTypes =
ParameterTypesWithAnnotations
;
Symbols\MemberSymbolExtensions.cs (1)
58
return ((MethodSymbol)member).
ParameterTypesWithAnnotations
;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
379
transformedParameters = paramsTransformed ? paramsBuilder.ToImmutable() : sig.
ParameterTypesWithAnnotations
;
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
203
transformedParameterTypes = type.Signature.
ParameterTypesWithAnnotations
;
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
233
parameterTypes = type.Signature.
ParameterTypesWithAnnotations
;
Symbols\MethodSymbol.cs (1)
910
internal TypeSymbol GetParameterType(int index) =>
ParameterTypesWithAnnotations
[index].Type;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
795
newParameterTypes = signature.
ParameterTypesWithAnnotations
;
Symbols\Source\LambdaSymbol.cs (2)
386
&&
ParameterTypesWithAnnotations
.SequenceEqual(lambda.
ParameterTypesWithAnnotations
, compareKind,
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2883
if (!op1.
ParameterTypesWithAnnotations
[p].Equals(op2.
ParameterTypesWithAnnotations
[p], TypeCompareKind.AllIgnoreOptions))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
791
? ((MethodSymbol)overridingMember).
ParameterTypesWithAnnotations
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1586
ParameterTypesWithAnnotations
.Any(static (p, cancellationTokenType) => p.Type.Equals(cancellationTokenType), cancellationTokenType))
Symbols\TypeSymbolExtensions.cs (1)
2068
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;
2552
Assert.Equal(i2, returnType.Signature.
ParameterTypesWithAnnotations
[0].Type);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_Tuples.cs (1)
280
foreach (var parameterType in methodSymbol.
ParameterTypesWithAnnotations
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
6934
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)
921
Assert.Equal(SpecialType.System_Object, interfaceMethod.
ParameterTypesWithAnnotations
.Single().SpecialType);
922
Assert.Equal(TypeKind.Dynamic, classMethod.
ParameterTypesWithAnnotations
.Single().Type.TypeKind);
965
Assert.Equal(TypeKind.Dynamic, interfaceMethod.
ParameterTypesWithAnnotations
.Single().Type.TypeKind);
966
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);