14 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.ValueChecks.cs (1)
3022public 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)
1708public override TypeWithAnnotations TypeWithAnnotations => _parameterType; 1740public override TypeWithAnnotations TypeWithAnnotations => _parameterType;
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
44public override TypeWithAnnotations TypeWithAnnotations => _parameterType;
Symbols\Source\ThisParameterSymbol.cs (1)
140public 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
127 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (127)
Binder\Binder_Attributes.cs (1)
400var paramType = parameter.TypeWithAnnotations;
Binder\Binder_Expressions.cs (1)
3481arguments[arg] = coerceArgument(in methodResult, receiver, parameters, argumentsForInterpolationConversion: arguments, argument, arg, parameters[paramNum].TypeWithAnnotations, diagnostics);
Binder\Binder_Invocation.cs (1)
1702isCast ? new ConversionGroup(conversion, parameter.TypeWithAnnotations) : null,
Binder\Binder_Statements.cs (1)
2156if (delegateParameters[i].TypeWithAnnotations.IsStatic)
Binder\Semantics\Conversions\Conversions.cs (1)
418TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Object), customModifiers: parameter.TypeWithAnnotations.CustomModifiers), parameter.RefCustomModifiers,
Binder\Semantics\Conversions\ConversionsBase.cs (3)
1560if (delegateParameters[p].TypeWithAnnotations.IsStatic) 3406if (!hasConversion(sourceParam.RefKind, destinationSig.Parameters[i].TypeWithAnnotations, sourceSig.Parameters[i].TypeWithAnnotations, ref useSiteInfo))
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (9)
1568ExactInference(anonymousFunction.ParameterTypeWithAnnotations(i), delegateParameters[i].TypeWithAnnotations, ref useSiteInfo); 2423UpperBoundInference(sourceParam.TypeWithAnnotations, targetParam.TypeWithAnnotations, ref useSiteInfo); 2427ExactInference(sourceParam.TypeWithAnnotations, targetParam.TypeWithAnnotations, ref useSiteInfo); 2773LowerBoundInference(sourceParam.TypeWithAnnotations, targetParam.TypeWithAnnotations, ref useSiteInfo); 2777ExactInference(sourceParam.TypeWithAnnotations, targetParam.TypeWithAnnotations, ref useSiteInfo);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
3831types.Add(parameter.TypeWithAnnotations); 3968var type = parameter.TypeWithAnnotations;
BoundTree\UnboundLambda.cs (1)
1112typesBuilder.Add(p.TypeWithAnnotations);
Compilation\CSharpCompilation.cs (1)
2241var firstType = method.Parameters[0].TypeWithAnnotations;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (10)
418otherParamsBuilder.Add(param.TypeWithAnnotations.WithTypeAndModifiers(otherType, VisitCustomModifiers(param.TypeWithAnnotations.CustomModifiers))); 517(x, y) => isCorrespondingType(x.TypeWithAnnotations, y.TypeWithAnnotations) && 687ValidateFunctionPointerParamOrReturn(param.TypeWithAnnotations, param.RefKind, param.RefCustomModifiers, allowOut: true); 688ValidateFunctionPointerParamOrReturn(otherParam.TypeWithAnnotations, otherParam.RefKind, otherParam.RefCustomModifiers, allowOut: true); 690return param.RefKind == otherParam.RefKind && AreTypesEqual(param.TypeWithAnnotations, otherParam.TypeWithAnnotations); 927translatedParamsBuilder.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 (20)
592EnterParameter(methodThisParameter, methodThisParameter.TypeWithAnnotations); 1275(hasMaybeNullWhenFalse && ShouldReportNullableAssignment(parameter.TypeWithAnnotations, parameterState)); 1283(hasMaybeNullWhenTrue && ShouldReportNullableAssignment(parameter.TypeWithAnnotations, parameterState)); 1924parameterType = parameter.TypeWithAnnotations; 2812var parameterType = i >= signatureParameters.Length ? parameter.TypeWithAnnotations : signatureParameters[i].TypeWithAnnotations; 2847var parameterLValueType = ApplyLValueAnnotations(parameter.TypeWithAnnotations, parameterAnnotations); 5115var targetTypeWithNullability = ApplyLValueAnnotations(parameter.TypeWithAnnotations, parameterAnnotations); 6365var parameterType = method.Parameters[0].TypeWithAnnotations; 7803var type = parameter.TypeWithAnnotations; 9385var parameterType = ApplyLValueAnnotations(parameter.TypeWithAnnotations, parameterAnnotations); 9830var parameterType = parameter.TypeWithAnnotations; 10219var nestedRight = CreatePlaceholderIfNecessary(invocation.Arguments[i + offset], parameter.TypeWithAnnotations); 10225parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 10238variable.Expression, parameter.RefKind, parameter, parameter.TypeWithAnnotations, GetRValueAnnotations(parameter), 10439targetTypeOfOperandConversion = incrementOperator.Parameters[0].TypeWithAnnotations; 10603var paramType = parameter.TypeWithAnnotations; 10649parameter.TypeWithAnnotations; 11271parameter.TypeWithAnnotations, 11845parameter.TypeWithAnnotations,
FlowAnalysis\NullableWalker_Patterns.cs (1)
451var parameterType = method.Parameters[i + extensionExtra].TypeWithAnnotations;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
117return frame.TypeMap.SubstituteType(((object)local != null ? local.TypeWithAnnotations : ((ParameterSymbol)variable).TypeWithAnnotations).Type).Type;
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
579if (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)
139this.TypeMap.SubstituteType(p.OriginalDefinition.TypeWithAnnotations),
Symbols\Compilation_WellKnownMembers.cs (1)
1007handle(param.RefKind, param.RefCustomModifiers, param.TypeWithAnnotations);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
599param.TypeWithAnnotations.AddNullableTransforms(transforms); 613madeParamChanges |= param.TypeWithAnnotations.ApplyNullableTransforms(defaultTransformFlag, transforms, ref position, out var newParamType);
Symbols\MemberSignatureComparer.cs (2)
777var type1 = SubstituteType(typeMap1, param1.TypeWithAnnotations); 778var type2 = SubstituteType(typeMap2, param2.TypeWithAnnotations);
Symbols\MemberSymbolExtensions.cs (2)
210var paramType = param.TypeWithAnnotations; 259var 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)
419public 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)
195ReportParameterErrors(owner, parameterSyntax, parameter.Ordinal, lastParameterIndex: lastIndex, parameter.IsParams, parameter.TypeWithAnnotations, 304if (parameter.TypeWithAnnotations.ContainsNativeIntegerWrapperType()) 402if (parameter.TypeWithAnnotations.NeedsNullableAttribute())
Symbols\Source\SourceClonedParameterSymbol.cs (1)
90get { return _originalParam.TypeWithAnnotations; }
Symbols\Source\SourceComplexParameterSymbol.cs (8)
1070else if (!compilation.Conversions.HasCallerLineNumberConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1074diagnostics.Add(ErrorCode.ERR_NoConversionForCallerLineNumberParam, node.Name.Location, intType, TypeWithAnnotations.Type); 1098else if (!compilation.Conversions.HasCallerInfoStringConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1102diagnostics.Add(ErrorCode.ERR_NoConversionForCallerFilePathParam, node.Name.Location, stringType, TypeWithAnnotations.Type); 1131else if (!compilation.Conversions.HasCallerInfoStringConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1135diagnostics.Add(ErrorCode.ERR_NoConversionForCallerMemberNameParam, node.Name.Location, stringType, TypeWithAnnotations.Type); 1172else if (!compilation.Conversions.HasCallerInfoStringConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1176diagnostics.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.cs (5)
3951var propertyParamType = (((i == numParams - 1) && !getNotSet) ? propertySymbol.TypeWithAnnotations : propertyParams[i].TypeWithAnnotations).Type; 4527param.TypeWithAnnotations, 4546&& field.TypeWithAnnotations.Equals(param.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions)) 4555&& prop.TypeWithAnnotations.Equals(param.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions)) 4573param.TypeWithAnnotations,
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
1294var baseParameterType = baseParameter.TypeWithAnnotations; 1297var overrideParameterType = getNotNullIfNotNullOutputType(overrideParameter.TypeWithAnnotations, overrideParameter.NotNullIfParameterNotNull); 1332if (notNullIfParameterNotNull.Contains(overrideParam.Name) && NullableWalker.GetParameterState(baseParam.TypeWithAnnotations, baseParam.FlowAnalysisAnnotations).IsNotNull)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
362if (!parameter.TypeWithAnnotations.IsAtLeastAsVisibleAs(this, ref useSiteInfo))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
179forceMethodTypeParameters(param.TypeWithAnnotations, this, declaredConstraints); 208var 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)
55TypeWithAnnotations substituted = ((TypeMap)mapOrType).SubstituteType(this._underlyingParameter.TypeWithAnnotations); 58this._underlyingParameter.TypeWithAnnotations.CustomModifiers.IsEmpty &&
Symbols\Symbol.cs (3)
1236return DeriveUseSiteInfoFromType(ref result, param.TypeWithAnnotations, AllowedRequiredModifierType.None) || 1372if (parameter.TypeWithAnnotations.GetUnificationUseSiteDiagnosticRecursive(ref result, owner, ref checkedTypes) || 1668builder.AddValue(((ParameterSymbol)this).TypeWithAnnotations);
Symbols\SymbolExtensions.cs (1)
525returnType = parameter.TypeWithAnnotations;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (1)
50=> ParameterSymbol.TypeWithAnnotations;
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
95return (BackingParameter.TypeWithAnnotations,
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
311oldParam.TypeWithAnnotations,
Symbols\TypeSymbolExtensions.cs (3)
979(TypeWithAnnotations nextTypeWithAnnotations, TypeSymbol? nextType) = getNextIterationElements(currentPointer.Parameters[i].TypeWithAnnotations, canDigThroughNullable); 996next = 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))