67 references to ParameterTypesWithAnnotations
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Expressions.cs (1)
11185var parameterTypes = methodSymbol.ParameterTypesWithAnnotations;
Binder\Binder_Operators.cs (1)
3790if (method.ParameterTypesWithAnnotations is [var typeWithAnnotations, ..])
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1904ExactInference(sourceSignature.ParameterTypesWithAnnotations[i], targetSignature.ParameterTypesWithAnnotations[i], ref useSiteInfo);
BoundTree\NullabilityRewriter.cs (1)
209updatedLambda = boundLambda.CreateLambdaSymbol(updatedContaining, lambda.ReturnTypeWithAnnotations, lambda.ParameterTypesWithAnnotations, lambda.ParameterRefKinds, lambda.RefKind);
Compiler\ClsComplianceChecker.cs (4)
283foreach (var paramType in constructor.ParameterTypesWithAnnotations) // Public caller would select type out of parameters. 637foreach (var type in attribute.AttributeConstructor.ParameterTypesWithAnnotations) 1333xParameterTypes = mX.ParameterTypesWithAnnotations; 1337yParameterTypes = mY.ParameterTypesWithAnnotations;
FlowAnalysis\NullableWalker.cs (3)
4221var parameterType = constructor.ParameterTypesWithAnnotations[0]; 5405method.OriginalDefinition.ParameterTypesWithAnnotations, 12028method.OriginalDefinition.ParameterTypesWithAnnotations,
Lowering\LocalRewriter\LocalRewriter.cs (1)
416predicate(localFunction.ReturnTypeWithAnnotations) || localFunction.ParameterTypesWithAnnotations.Any(predicate);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
633rewrittenOperand = _factory.Convert(method.ParameterTypesWithAnnotations[0].Type, rewrittenOperand); 656rewrittenOperand = _factory.Convert(implicitOperator.ParameterTypesWithAnnotations[0].Type, rewrittenOperand); 690rewrittenOperand = _factory.Convert(method.ParameterTypesWithAnnotations[0].Type, rewrittenOperand); 705rewrittenOperand = _factory.Convert(method.ParameterTypesWithAnnotations[0].Type, rewrittenOperand);
Symbols\AbstractTypeMap.cs (1)
245var 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)
386mergedParameterTypes = ParameterTypesWithAnnotations; 426transformedParameterTypes = ParameterTypesWithAnnotations; 625newParamTypes = ParameterTypesWithAnnotations;
Symbols\MemberSymbolExtensions.cs (1)
58return ((MethodSymbol)member).ParameterTypesWithAnnotations;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
379transformedParameters = paramsTransformed ? paramsBuilder.ToImmutable() : sig.ParameterTypesWithAnnotations;
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
203transformedParameterTypes = type.Signature.ParameterTypesWithAnnotations;
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
233parameterTypes = type.Signature.ParameterTypesWithAnnotations;
Symbols\MethodSymbol.cs (1)
910internal TypeSymbol GetParameterType(int index) => ParameterTypesWithAnnotations[index].Type;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
795newParameterTypes = signature.ParameterTypesWithAnnotations;
Symbols\Source\LambdaSymbol.cs (2)
386&& ParameterTypesWithAnnotations.SequenceEqual(lambda.ParameterTypesWithAnnotations, compareKind,
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2883if (!op1.ParameterTypesWithAnnotations[p].Equals(op2.ParameterTypesWithAnnotations[p], TypeCompareKind.AllIgnoreOptions))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
791? ((MethodSymbol)overridingMember).ParameterTypesWithAnnotations
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1586ParameterTypesWithAnnotations.Any(static (p, cancellationTokenType) => p.Type.Equals(cancellationTokenType), cancellationTokenType))
Symbols\TypeSymbolExtensions.cs (1)
2068paramTypes = funcPtrType.Signature.ParameterTypesWithAnnotations;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenFunctionPointersTests.cs (4)
143var funcPtr = m.ParameterTypesWithAnnotations[0].Type; 167var funcPtr = m.ParameterTypesWithAnnotations[0].Type; 699var paramModifiers = param.Signature.ParameterTypesWithAnnotations[0].CustomModifiers; 2552Assert.Equal(i2, returnType.Signature.ParameterTypesWithAnnotations[0].Type);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_Tuples.cs (1)
280foreach (var parameterType in methodSymbol.ParameterTypesWithAnnotations)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
6934OfType<MethodSymbol>().Single(m => m.ParameterTypesWithAnnotations[0].Equals(m.ParameterTypesWithAnnotations[1], TypeCompareKind.ConsiderEverything));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
DocumentationComments\CrefTests.cs (4)
2412Single(method => method.ParameterTypesWithAnnotations.Single().SpecialType == SpecialType.System_Int32); 2597Single(method => method.ParameterTypesWithAnnotations.First().SpecialType == SpecialType.System_Int32); 2805Single(method => method.ParameterTypesWithAnnotations.Single().SpecialType == SpecialType.System_Int32); 2841Single(method => method.ParameterTypesWithAnnotations.Single().SpecialType == SpecialType.System_Int32 && method.ReturnType.SpecialType == SpecialType.System_Int32);
Symbols\Source\CustomModifierCopyTests.cs (4)
921Assert.Equal(SpecialType.System_Object, interfaceMethod.ParameterTypesWithAnnotations.Single().SpecialType); 922Assert.Equal(TypeKind.Dynamic, classMethod.ParameterTypesWithAnnotations.Single().Type.TypeKind); 965Assert.Equal(TypeKind.Dynamic, interfaceMethod.ParameterTypesWithAnnotations.Single().Type.TypeKind); 966Assert.Equal(SpecialType.System_Object, classMethod.ParameterTypesWithAnnotations.Single().SpecialType);
Symbols\Source\EventTests.cs (12)
354Assert.Equal(1, e1.AddMethod.ParameterTypesWithAnnotations.Length); 355Assert.Equal("System.Action<dynamic>", e1.AddMethod.ParameterTypesWithAnnotations[0].ToTestDisplayString()); 357Assert.Equal(1, e1.RemoveMethod.ParameterTypesWithAnnotations.Length); 358Assert.Equal("System.Action<dynamic>", e1.RemoveMethod.ParameterTypesWithAnnotations[0].ToTestDisplayString()); 360Assert.Equal(1, e2.AddMethod.ParameterTypesWithAnnotations.Length); 361Assert.Equal("System.Action<dynamic>", e2.AddMethod.ParameterTypesWithAnnotations[0].ToTestDisplayString()); 363Assert.Equal(1, e2.RemoveMethod.ParameterTypesWithAnnotations.Length); 364Assert.Equal("System.Action<dynamic>", e2.RemoveMethod.ParameterTypesWithAnnotations[0].ToTestDisplayString()); 2269Assert.Equal(baseEventType, event1.AddMethod.ParameterTypesWithAnnotations.Single().Type); 2270Assert.Equal(baseEventType, event1.RemoveMethod.ParameterTypesWithAnnotations.Single().Type); 2276Assert.Equal(baseEventType, event2.AddMethod.ParameterTypesWithAnnotations.Single().Type); 2277Assert.Equal(baseEventType, event2.RemoveMethod.ParameterTypesWithAnnotations.Single().Type);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (4)
Metadata\WinMdEventTests.cs (4)
3583Assert.Equal(eventType.Type, addMethod.ParameterTypesWithAnnotations.Single().Type); 3589Assert.Equal(tokenType, removeMethod.ParameterTypesWithAnnotations.Single().Type); 3614Assert.Equal(eventType, addMethod.ParameterTypesWithAnnotations.Single().Type); 3620Assert.Equal(eventType, removeMethod.ParameterTypesWithAnnotations.Single().Type);