14 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.ValueChecks.cs (1)
2999public 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)
1714public override TypeWithAnnotations TypeWithAnnotations => _parameterType; 1746public 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)
3484arguments[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)
2159if (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)
3852types.Add(parameter.TypeWithAnnotations); 3989var type = parameter.TypeWithAnnotations;
BoundTree\UnboundLambda.cs (1)
1112typesBuilder.Add(p.TypeWithAnnotations);
Compilation\CSharpCompilation.cs (1)
2246var 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)
593EnterParameter(methodThisParameter, methodThisParameter.TypeWithAnnotations); 1336(hasMaybeNullWhenFalse && ShouldReportNullableAssignment(parameter.TypeWithAnnotations, parameterState)); 1344(hasMaybeNullWhenTrue && ShouldReportNullableAssignment(parameter.TypeWithAnnotations, parameterState)); 1985parameterType = parameter.TypeWithAnnotations; 2873var parameterType = i >= signatureParameters.Length ? parameter.TypeWithAnnotations : signatureParameters[i].TypeWithAnnotations; 2908var parameterLValueType = ApplyLValueAnnotations(parameter.TypeWithAnnotations, parameterAnnotations); 5176var targetTypeWithNullability = ApplyLValueAnnotations(parameter.TypeWithAnnotations, parameterAnnotations); 6426var parameterType = method.Parameters[0].TypeWithAnnotations; 7861var type = parameter.TypeWithAnnotations; 9443var parameterType = ApplyLValueAnnotations(parameter.TypeWithAnnotations, parameterAnnotations); 9888var parameterType = parameter.TypeWithAnnotations; 10277var nestedRight = CreatePlaceholderIfNecessary(invocation.Arguments[i + offset], parameter.TypeWithAnnotations); 10283parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 10296variable.Expression, parameter.RefKind, parameter, parameter.TypeWithAnnotations, GetRValueAnnotations(parameter), 10497targetTypeOfOperandConversion = incrementOperator.Parameters[0].TypeWithAnnotations; 10661var paramType = parameter.TypeWithAnnotations; 10707parameter.TypeWithAnnotations; 11329parameter.TypeWithAnnotations, 11903parameter.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)
1076else if (!compilation.Conversions.HasCallerLineNumberConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1080diagnostics.Add(ErrorCode.ERR_NoConversionForCallerLineNumberParam, node.Name.Location, intType, TypeWithAnnotations.Type); 1104else if (!compilation.Conversions.HasCallerInfoStringConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1108diagnostics.Add(ErrorCode.ERR_NoConversionForCallerFilePathParam, node.Name.Location, stringType, TypeWithAnnotations.Type); 1137else if (!compilation.Conversions.HasCallerInfoStringConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1141diagnostics.Add(ErrorCode.ERR_NoConversionForCallerMemberNameParam, node.Name.Location, stringType, TypeWithAnnotations.Type); 1178else if (!compilation.Conversions.HasCallerInfoStringConversion(TypeWithAnnotations.Type, ref useSiteInfo)) 1182diagnostics.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)
3965var propertyParamType = (((i == numParams - 1) && !getNotSet) ? propertySymbol.TypeWithAnnotations : propertyParams[i].TypeWithAnnotations).Type; 4541param.TypeWithAnnotations, 4560&& field.TypeWithAnnotations.Equals(param.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions)) 4569&& prop.TypeWithAnnotations.Equals(param.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions)) 4587param.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))