9 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (9)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
46
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
69
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\ErrorPropertySymbol.cs (1)
46
public override TypeWithAnnotations
TypeWithAnnotations
{ get { return _typeWithAnnotations; } }
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
591
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\NativeIntegerTypeSymbol.cs (1)
444
public override TypeWithAnnotations
TypeWithAnnotations
=> _container.SubstituteUnderlyingType(_underlyingProperty.TypeWithAnnotations);
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
63
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\SignatureOnlyPropertySymbol.cs (1)
52
public override TypeWithAnnotations
TypeWithAnnotations
{ get { return _type; } }
Symbols\Source\SourcePropertySymbolBase.cs (1)
290
public sealed override TypeWithAnnotations
TypeWithAnnotations
Symbols\SubstitutedPropertySymbol.cs (1)
25
public override TypeWithAnnotations
TypeWithAnnotations
108 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder.ValueChecks.cs (1)
1490
Debug.Assert(propertySymbol.
TypeWithAnnotations
.HasType);
Binder\ForEachLoopBinder.cs (1)
856
builder.ElementTypeWithAnnotations = ((PropertySymbol)builder.CurrentPropertyGetter.AssociatedSymbol).
TypeWithAnnotations
;
Emitter\Model\PropertySymbolAdapter.cs (1)
181
return AdaptedPropertySymbol.
TypeWithAnnotations
.CustomModifiers.As<ICustomModifier>();
FlowAnalysis\NullableWalker.cs (6)
708
symbolType = p.
TypeWithAnnotations
;
4104
TrackNullableStateForAssignment(argument, property.
TypeWithAnnotations
, slot, argumentType, MakeSlot(argument));
4110
SetAnalyzedNullability(currentDeclaration, new VisitResult(argumentType, property.
TypeWithAnnotations
));
9105
var type = property.
TypeWithAnnotations
;
9833
var resultType = ApplyUnconditionalAnnotations(indexer.
TypeWithAnnotations
.ToTypeWithState(), GetRValueAnnotations(indexer));
9834
SetResult(node, resultType, indexer.
TypeWithAnnotations
);
FlowAnalysis\NullableWalker_Patterns.cs (1)
495
var type = property.
TypeWithAnnotations
;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
33
paramsArr.Add(SynthesizedParameterSymbol.Create(this, property.
TypeWithAnnotations
, index, RefKind.None, property.Name));
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
32
return _property.
TypeWithAnnotations
;
Symbols\Attributes\AttributeData.cs (1)
581
if (property.
TypeWithAnnotations
.HasType && property.Type.SpecialType == SpecialType.System_String &&
Symbols\MemberSymbolExtensions.cs (1)
253
var type = property.
TypeWithAnnotations
;
Symbols\NativeIntegerTypeSymbol.cs (1)
444
public override TypeWithAnnotations TypeWithAnnotations => _container.SubstituteUnderlyingType(_underlyingProperty.
TypeWithAnnotations
);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
898
var propertyType = property.
TypeWithAnnotations
;
Symbols\PropertySymbol.cs (3)
90
public TypeSymbol Type =>
TypeWithAnnotations
.Type;
377
if (DeriveUseSiteInfoFromType(ref result, this.
TypeWithAnnotations
, AllowedRequiredModifierType.None) ||
390
if (this.
TypeWithAnnotations
.GetUnificationUseSiteDiagnosticRecursive(ref diagnosticInfo, this, ref unificationCheckedTypes) ||
Symbols\PublicModel\PropertySymbol.cs (3)
37
Interlocked.CompareExchange(ref _lazyType, _underlying.
TypeWithAnnotations
.GetPublicSymbol(), null);
44
CodeAnalysis.NullableAnnotation IPropertySymbol.NullableAnnotation => _underlying.
TypeWithAnnotations
.ToPublicAnnotation();
98
get { return _underlying.
TypeWithAnnotations
.CustomModifiers; }
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
69
var type = this.RetargetingTranslator.Retarget(_underlyingProperty.
TypeWithAnnotations
, RetargetOptions.RetargetPrimitiveTypesByTypeCode);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1117
Retarget(property.
TypeWithAnnotations
, RetargetOptions.RetargetPrimitiveTypesByTypeCode),
Symbols\Source\SourceMemberContainerSymbol.cs (2)
3688
var propertyParamType = (((i == numParams - 1) && !getNotSet) ? propertySymbol.
TypeWithAnnotations
: propertyParams[i].TypeWithAnnotations).Type;
4291
&& prop.
TypeWithAnnotations
.Equals(param.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1051
TypeWithAnnotations overridingMemberType = overridingProperty.
TypeWithAnnotations
;
1052
TypeWithAnnotations overriddenMemberType = overriddenProperty.
TypeWithAnnotations
;
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
282
var type = associatedProperty.
TypeWithAnnotations
;
Symbols\Source\SourcePropertySymbolBase.cs (1)
218
TypeWithAnnotations overriddenPropertyType = overriddenOrImplementedProperty.
TypeWithAnnotations
;
Symbols\SubstitutedPropertySymbol.cs (1)
31
var type = _containingType.TypeSubstitution.SubstituteType(OriginalDefinition.
TypeWithAnnotations
);
Symbols\Symbol.cs (1)
1517
builder.AddValue(((PropertySymbol)this).
TypeWithAnnotations
);
Symbols\SymbolExtensions.cs (1)
501
returnType = property.
TypeWithAnnotations
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (30)
CodeGen\CodeGenTupleTest.cs (2)
15832
Assert.True(m1P1.
TypeWithAnnotations
.CustomModifiers.IsEmpty);
15862
Assert.True(m1this.
TypeWithAnnotations
.CustomModifiers.IsEmpty);
Emit\EmitMetadataTests.cs (1)
1167
var type = property.
TypeWithAnnotations
;
Emit\InAttributeModifierTests.cs (27)
1773
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
1793
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
1814
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
1835
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
1896
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
1916
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
1938
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
2965
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
2988
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
3010
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
3034
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
3056
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
3080
Assert.Empty(implicitproperty.
TypeWithAnnotations
.CustomModifiers);
3102
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
3126
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
3148
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
3172
Assert.Empty(property.
TypeWithAnnotations
.CustomModifiers);
3441
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
3465
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
3487
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
3511
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
3533
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
3557
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
3579
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
3603
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
3625
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
3649
Assert.Empty(indexer.
TypeWithAnnotations
.CustomModifiers);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (29)
Semantics\NativeIntegerTests.cs (2)
574
verifyTypes(property.
TypeWithAnnotations
, underlyingProperty.
TypeWithAnnotations
);
Semantics\NullableReferenceTypesTests.cs (27)
8924
Assert.Equal(NullableAnnotation.Oblivious, c.GetMember<PropertySymbol>("C.P").
TypeWithAnnotations
.NullableAnnotation);
8926
Assert.Equal(NullableAnnotation.Oblivious, indexer.
TypeWithAnnotations
.NullableAnnotation);
8977
verifyTuple(c.GetMember<PropertySymbol>("C.P").
TypeWithAnnotations
);
12873
Assert.False(member.
TypeWithAnnotations
.Equals(member.OverriddenProperty.
TypeWithAnnotations
, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
12878
Assert.True(member.
TypeWithAnnotations
.Equals(member.OverriddenProperty.
TypeWithAnnotations
, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
12887
Assert.True(property.
TypeWithAnnotations
.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
12888
Assert.True(property.
TypeWithAnnotations
.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything));
13024
Assert.False(impl.
TypeWithAnnotations
.Equals(member.
TypeWithAnnotations
, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
13030
Assert.True(impl.
TypeWithAnnotations
.Equals(member.
TypeWithAnnotations
, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
13039
Assert.True(property.
TypeWithAnnotations
.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
13040
Assert.True(property.
TypeWithAnnotations
.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything));
13115
Assert.False(impl.
TypeWithAnnotations
.Equals(member.
TypeWithAnnotations
, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
13121
Assert.True(impl.
TypeWithAnnotations
.Equals(member.
TypeWithAnnotations
, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
13130
Assert.True(property.
TypeWithAnnotations
.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
13131
Assert.True(property.
TypeWithAnnotations
.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything));
16617
Assert.True(property.
TypeWithAnnotations
.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
16618
Assert.True(property.
TypeWithAnnotations
.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything));
16699
Assert.True(property.
TypeWithAnnotations
.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
16700
Assert.True(property.
TypeWithAnnotations
.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything));
16781
Assert.True(property.
TypeWithAnnotations
.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
16782
Assert.True(property.
TypeWithAnnotations
.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Symbols\Metadata\PE\LoadCustomModifiers.cs (1)
161
var propertyTypeCustomModifier = property.
TypeWithAnnotations
.CustomModifiers.Single();
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (1)
271
var missing = methodSymbol.
TypeWithAnnotations
;
Symbols\Retargeting\RetargetingTests.cs (2)
1256
CheckSymbols(a.
TypeWithAnnotations
, b.
TypeWithAnnotations
, false);
Symbols\Source\CompletionTests.cs (2)
83
var pType = p.
TypeWithAnnotations
;
89
pType = p.
TypeWithAnnotations
;
Symbols\Source\CustomModifierCopyTests.cs (9)
350
CheckCustomModifier(onType, property.
TypeWithAnnotations
.CustomModifiers);
1768
Assert.Equal(int8Type, baseProperty.
TypeWithAnnotations
.CustomModifiers.Single().Modifier());
1769
Assert.Equal(int8Type, derivedProperty.
TypeWithAnnotations
.CustomModifiers.Single().Modifier());
1771
Assert.Equal(int8Type, baseIndexer.
TypeWithAnnotations
.CustomModifiers.Single().Modifier());
1772
Assert.Equal(int8Type, derivedIndexer.
TypeWithAnnotations
.CustomModifiers.Single().Modifier());
1967
Assert.Equal(int8Type, interfaceProperty.
TypeWithAnnotations
.CustomModifiers.Single().Modifier());
1968
Assert.Equal(int8Type, implementationProperty.
TypeWithAnnotations
.CustomModifiers.Single().Modifier());
1970
Assert.Equal(int8Type, interfaceIndexer.
TypeWithAnnotations
.CustomModifiers.Single().Modifier());
1971
Assert.Equal(int8Type, implementationIndexer.
TypeWithAnnotations
.CustomModifiers.Single().Modifier());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
61
return AddIfUsesIsNullable(symbol, symbol.
TypeWithAnnotations
, inProgress: null) ||