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