14 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.ValueChecks.cs (1)
3102public override TypeWithAnnotations TypeWithAnnotations
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
26public override TypeWithAnnotations TypeWithAnnotations { get; }
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
921public override TypeWithAnnotations TypeWithAnnotations
Symbols\SignatureOnlyParameterSymbol.cs (1)
40public override TypeWithAnnotations TypeWithAnnotations { get { return _type; } }
Symbols\Source\LambdaParameterSymbol.cs (1)
35public override TypeWithAnnotations TypeWithAnnotations => _parameterType;
Symbols\Source\SourceClonedParameterSymbol.cs (1)
88public override TypeWithAnnotations TypeWithAnnotations
Symbols\Source\SourceComplexParameterSymbol.cs (2)
1703public override TypeWithAnnotations TypeWithAnnotations => _parameterType; 1735public override TypeWithAnnotations TypeWithAnnotations => _parameterType;
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
44public override TypeWithAnnotations TypeWithAnnotations => _parameterType;
Symbols\Source\ThisParameterSymbol.cs (1)
145public override TypeWithAnnotations TypeWithAnnotations
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
107public override TypeWithAnnotations TypeWithAnnotations => ((PropertySymbol)((SourcePropertyAccessorSymbol)ContainingSymbol).AssociatedSymbol).TypeWithAnnotations; 120public override TypeWithAnnotations TypeWithAnnotations
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
45public override TypeWithAnnotations TypeWithAnnotations => _type;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
39public override TypeWithAnnotations TypeWithAnnotations
128 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (128)
Binder\Binder_Attributes.cs (1)
400var paramType = parameter.TypeWithAnnotations;
Binder\Binder_Expressions.cs (1)
3464arguments[arg] = coerceArgument(in methodResult, receiver, parameters, argumentsForInterpolationConversion: arguments, argument, arg, parameters[paramNum].TypeWithAnnotations, diagnostics);
Binder\Binder_Invocation.cs (1)
1758isCast ? new ConversionGroup(conversion, parameter.TypeWithAnnotations) : null,
Binder\Binder_Statements.cs (1)
2186if (delegateParameters[i].TypeWithAnnotations.IsStatic)
Binder\Semantics\Conversions\Conversions.cs (1)
437TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Object), customModifiers: parameter.TypeWithAnnotations.CustomModifiers), parameter.RefCustomModifiers,
Binder\Semantics\Conversions\ConversionsBase.cs (3)
1558if (delegateParameters[p].TypeWithAnnotations.IsStatic) 3404if (!hasConversion(sourceParam.RefKind, destinationSig.Parameters[i].TypeWithAnnotations, sourceSig.Parameters[i].TypeWithAnnotations, ref useSiteInfo))
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (10)
1596ExactInference(anonymousFunction.ParameterTypeWithAnnotations(i), delegateParameters[i].TypeWithAnnotations, ref useSiteInfo); 2451UpperBoundInference(sourceParam.TypeWithAnnotations, targetParam.TypeWithAnnotations, ref useSiteInfo); 2455ExactInference(sourceParam.TypeWithAnnotations, targetParam.TypeWithAnnotations, ref useSiteInfo); 2801LowerBoundInference(sourceParam.TypeWithAnnotations, targetParam.TypeWithAnnotations, ref useSiteInfo); 2805ExactInference(sourceParam.TypeWithAnnotations, targetParam.TypeWithAnnotations, ref useSiteInfo); 3206[extension.ExtensionParameter.TypeWithAnnotations],
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
3920types.Add(parameter.TypeWithAnnotations); 4057var type = parameter.TypeWithAnnotations;
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (1)
62return [symbol.ContainingType.ExtensionParameter.TypeWithAnnotations, .. symbol.GetParameterTypes()];
BoundTree\UnboundLambda.cs (1)
1133typesBuilder.Add(p.TypeWithAnnotations);
Compilation\CSharpCompilation.cs (1)
2246var firstType = method.Parameters[0].TypeWithAnnotations;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (10)
417otherParamsBuilder.Add(param.TypeWithAnnotations.WithTypeAndModifiers(otherType, VisitCustomModifiers(param.TypeWithAnnotations.CustomModifiers))); 516(x, y) => isCorrespondingType(x.TypeWithAnnotations, y.TypeWithAnnotations) && 686ValidateFunctionPointerParamOrReturn(param.TypeWithAnnotations, param.RefKind, param.RefCustomModifiers, allowOut: true); 687ValidateFunctionPointerParamOrReturn(otherParam.TypeWithAnnotations, otherParam.RefKind, otherParam.RefCustomModifiers, allowOut: true); 689return param.RefKind == otherParam.RefKind && AreTypesEqual(param.TypeWithAnnotations, otherParam.TypeWithAnnotations); 926translatedParamsBuilder.Add(param.TypeWithAnnotations.WithTypeAndModifiers(translatedParamType, VisitCustomModifiers(param.TypeWithAnnotations.CustomModifiers)));
Emitter\Model\ParameterSymbolAdapter.cs (1)
33return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedParameterSymbol.TypeWithAnnotations.CustomModifiers);
Emitter\Model\ParameterTypeInformation.cs (1)
31return ImmutableArray<Cci.ICustomModifier>.CastUp(_underlyingParameter.TypeWithAnnotations.CustomModifiers);
FlowAnalysis\NullableWalker.cs (21)
601EnterParameter(methodThisParameter, methodThisParameter.TypeWithAnnotations); 606EnterParameter(extensionParameter, extensionParameter.TypeWithAnnotations); 1362(hasMaybeNullWhenFalse && ShouldReportNullableAssignment(parameter.TypeWithAnnotations, parameterState)); 1370(hasMaybeNullWhenTrue && ShouldReportNullableAssignment(parameter.TypeWithAnnotations, parameterState)); 2022parameterType = parameter.TypeWithAnnotations; 2969var parameterType = i >= signatureParameters.Length ? parameter.TypeWithAnnotations : signatureParameters[i].TypeWithAnnotations; 3004var parameterLValueType = ApplyLValueAnnotations(parameter.TypeWithAnnotations, parameterAnnotations); 5337var targetTypeWithNullability = ApplyLValueAnnotations(parameter.TypeWithAnnotations, parameterAnnotations); 6630var parameterType = method.Parameters[0].TypeWithAnnotations; 8087var type = parameter.TypeWithAnnotations; 9677var parameterType = ApplyLValueAnnotations(parameter.TypeWithAnnotations, parameterAnnotations); 10125var parameterType = parameter.TypeWithAnnotations; 10540var nestedRight = CreatePlaceholderIfNecessary(invocation.Arguments[i + offset], parameter.TypeWithAnnotations); 10546parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 10559variable.Expression, parameter.RefKind, parameter, parameter.TypeWithAnnotations, GetRValueAnnotations(parameter), 10769targetTypeOfOperandConversion = incrementOperator.Parameters[0].TypeWithAnnotations; 10956var paramType = parameter.TypeWithAnnotations; 11002parameter.TypeWithAnnotations; 11626parameter.TypeWithAnnotations, 12200parameter.TypeWithAnnotations,
FlowAnalysis\NullableWalker_Patterns.cs (1)
451var parameterType = method.Parameters[i + extensionExtra].TypeWithAnnotations;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
136return frame.TypeMap.SubstituteType(((object)local != null ? local.TypeWithAnnotations : ((ParameterSymbol)variable).TypeWithAnnotations).Type).Type;
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
623if (p.TypeWithAnnotations.IsRestrictedType())
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (2)
100Debug.Assert(parameter.TypeWithAnnotations.IsRestrictedType()); 105diagnostics.Add(ErrorCode.ERR_ByRefTypeAndAwait, syntax.Location, parameter.TypeWithAnnotations);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
123this.TypeMap.SubstituteType(p.OriginalDefinition.TypeWithAnnotations),
Symbols\Compilation_WellKnownMembers.cs (1)
1007handle(param.RefKind, param.RefCustomModifiers, param.TypeWithAnnotations);
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
131get { return _containingMethod._typeMap.SubstituteType(this._underlyingParameter.TypeWithAnnotations); }
Symbols\Extensions\SynthesizedExtensionMarker.cs (1)
82TypeSymbol parameterType = parameter.TypeWithAnnotations.Type;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
599param.TypeWithAnnotations.AddNullableTransforms(transforms); 613madeParamChanges |= param.TypeWithAnnotations.ApplyNullableTransforms(defaultTransformFlag, transforms, ref position, out var newParamType);
Symbols\MemberSignatureComparer.cs (2)
792var type1 = SubstituteType(typeMap1, param1.TypeWithAnnotations); 793var type2 = SubstituteType(typeMap2, param2.TypeWithAnnotations);
Symbols\MemberSymbolExtensions.cs (2)
444var paramType = param.TypeWithAnnotations; 493var paramType = param.TypeWithAnnotations;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
369var (transformedParamType, paramTransformed) = handle(ref this, param.RefKind, param.RefCustomModifiers, param.TypeWithAnnotations);
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
260var substituted = candidateParam.TypeWithAnnotations.SubstituteType(candidateMethodTypeMap);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (2)
188if (TransformTypeWithAnnotations(param.TypeWithAnnotations) is not { } transformedParam) 193paramsModified = paramsModified || !transformedParam.IsSameAs(param.TypeWithAnnotations);
Symbols\Metadata\PE\TupleTypeDecoder.cs (2)
221var decodedParam = DecodeTypeInternal(param.TypeWithAnnotations); 222paramsModified = paramsModified || !decodedParam.IsSameAs(param.TypeWithAnnotations);
Symbols\NativeIntegerTypeSymbol.cs (1)
426public override TypeWithAnnotations TypeWithAnnotations => _containingType.SubstituteUnderlyingType(_underlyingParameter.TypeWithAnnotations);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
669Debug.Assert(!(param.TypeWithAnnotations.CustomModifiers.Any() || param.RefCustomModifiers.Any()));
Symbols\ParameterSignature.cs (1)
44types.Add(parameter.TypeWithAnnotations);
Symbols\ParameterSymbol.cs (1)
54public TypeSymbol Type => TypeWithAnnotations.Type;
Symbols\PublicModel\ParameterSymbol.cs (3)
32Interlocked.CompareExchange(ref _lazyType, _underlying.TypeWithAnnotations.GetPublicSymbol(), null); 39CodeAnalysis.NullableAnnotation IParameterSymbol.NullableAnnotation => _underlying.TypeWithAnnotations.ToPublicAnnotation(); 43get { return _underlying.TypeWithAnnotations.CustomModifiers; }
Symbols\ReducedExtensionMethodSymbol.cs (2)
255_reducedFrom.Parameters[0].TypeWithAnnotations.ToPublicAnnotation(); 640get { return _containingMethod._typeMap.SubstituteType(this._underlyingParameter.TypeWithAnnotations); }
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
47new TypeWithAnnotations.Boxed(this.RetargetingModule.RetargetingTranslator.Retarget(_underlyingParameter.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode)),
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
778var newParameterType = Retarget(parameter.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 782parametersModified = parametersModified || !parameter.TypeWithAnnotations.IsSameAs(newParameterType) || customModifiersChanged;
Symbols\Source\CustomModifierUtils.cs (3)
131if (sourceParameter.TypeWithAnnotations.CustomModifiers.Any() || sourceParameter.RefCustomModifiers.Any() || 133destinationParameter.TypeWithAnnotations.CustomModifiers.Any() || destinationParameter.RefCustomModifiers.Any() || 145sourceParameter.TypeWithAnnotations.CustomModifiers,
Symbols\Source\ParameterHelpers.cs (3)
322ReportParameterErrors(owner, parameterSyntax, parameter.Ordinal, lastParameterIndex: lastIndex, isParams: parameter.IsParams, typeWithAnnotations: parameter.TypeWithAnnotations, 409if (parameter.TypeWithAnnotations.ContainsNativeIntegerWrapperType()) 507if (parameter.TypeWithAnnotations.NeedsNullableAttribute())
Symbols\Source\SourceClonedParameterSymbol.cs (1)
90get { return _originalParam.TypeWithAnnotations; }
Symbols\Source\SourceComplexParameterSymbol.cs (8)
1066else if (!compilation.Conversions.HasCallerLineNumberConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1070diagnostics.Add(ErrorCode.ERR_NoConversionForCallerLineNumberParam, node.Name.Location, intType, TypeWithAnnotations.Type); 1094else if (!compilation.Conversions.HasCallerInfoStringConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1098diagnostics.Add(ErrorCode.ERR_NoConversionForCallerFilePathParam, node.Name.Location, stringType, TypeWithAnnotations.Type); 1127else if (!compilation.Conversions.HasCallerInfoStringConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1131diagnostics.Add(ErrorCode.ERR_NoConversionForCallerMemberNameParam, node.Name.Location, stringType, TypeWithAnnotations.Type); 1168else if (!compilation.Conversions.HasCallerInfoStringConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1172diagnostics.Add(ErrorCode.ERR_NoConversionForCallerArgumentExpressionParam, node.Name.Location, stringType, TypeWithAnnotations.Type);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
116if (!parameterSymbol.TypeWithAnnotations.IsAtLeastAsVisibleAs(delegateType, ref useSiteInfo))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
1299var baseParameterType = baseParameter.TypeWithAnnotations; 1302var overrideParameterType = getNotNullIfNotNullOutputType(overrideParameter.TypeWithAnnotations, overrideParameter.NotNullIfParameterNotNull); 1337if (notNullIfParameterNotNull.Contains(overrideParam.Name) && NullableWalker.GetParameterState(baseParam.TypeWithAnnotations, baseParam.FlowAnalysisAnnotations).IsNotNull)
Symbols\Source\SourceMemberMethodSymbol.cs (2)
374if (!parameter.TypeWithAnnotations.IsAtLeastAsVisibleAs(this, ref useSiteInfo)) 383if (!extensionParameter.TypeWithAnnotations.IsAtLeastAsVisibleAs(this, ref useSiteInfo))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
179forceMethodTypeParameters(param.TypeWithAnnotations, this, declaredConstraints); 209var parameter0Type = this.Parameters[0].TypeWithAnnotations;
Symbols\Source\SourceParameterSymbol.cs (1)
127TypeWithAnnotations newTypeWithModifiers = this.TypeWithAnnotations.WithTypeAndModifiers(newType, newCustomModifiers);
Symbols\Source\SourceParameterSymbolBase.cs (1)
93var type = this.TypeWithAnnotations;
Symbols\SubstitutedParameterSymbol.cs (2)
60TypeWithAnnotations substituted = ((TypeMap)mapOrType).SubstituteType(this._underlyingParameter.TypeWithAnnotations); 63this._underlyingParameter.TypeWithAnnotations.CustomModifiers.IsEmpty &&
Symbols\Symbol.cs (3)
1237return DeriveUseSiteInfoFromType(ref result, param.TypeWithAnnotations, AllowedRequiredModifierType.None) || 1373if (parameter.TypeWithAnnotations.GetUnificationUseSiteDiagnosticRecursive(ref result, owner, ref checkedTypes) || 1669builder.AddValue(((ParameterSymbol)this).TypeWithAnnotations);
Symbols\SymbolExtensions.cs (1)
512returnType = parameter.TypeWithAnnotations;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (1)
52=> ParameterSymbol.TypeWithAnnotations;
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
95return (BackingParameter.TypeWithAnnotations,
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
311oldParam.TypeWithAnnotations,
Symbols\TypeSymbolExtensions.cs (3)
980(TypeWithAnnotations nextTypeWithAnnotations, TypeSymbol? nextType) = getNextIterationElements(currentPointer.Parameters[i].TypeWithAnnotations, canDigThroughNullable); 997next = currentPointer.Parameters[i].TypeWithAnnotations; 2055var paramType = param.TypeWithAnnotations;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
41get { return _underlyingParameter.TypeWithAnnotations; }
Utilities\TypeSymbolExtensions.cs (1)
120if (!param.RefCustomModifiers.IsEmpty || checkTypeWithAnnotations(param.TypeWithAnnotations, flagNonDefaultArraySizesOrLowerBounds))