10 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (10)
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)
685public override TypeWithAnnotations TypeWithAnnotations
Symbols\NativeIntegerTypeSymbol.cs (1)
502public 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)
367public sealed override TypeWithAnnotations TypeWithAnnotations
Symbols\SubstitutedPropertySymbol.cs (1)
25public override TypeWithAnnotations TypeWithAnnotations
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
35public override TypeWithAnnotations TypeWithAnnotations => _interfaceProperty.TypeWithAnnotations;
112 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder.ValueChecks.cs (1)
1945Debug.Assert(propertySymbol.TypeWithAnnotations.HasType);
Binder\ForEachLoopBinder.cs (1)
1058builder.ElementTypeWithAnnotations = ((PropertySymbol)builder.CurrentPropertyGetter.AssociatedSymbol).TypeWithAnnotations;
Emitter\Model\PropertySymbolAdapter.cs (1)
184return AdaptedPropertySymbol.TypeWithAnnotations.CustomModifiers.As<ICustomModifier>();
FlowAnalysis\NullableWalker.cs (8)
760symbolType = p.TypeWithAnnotations; 1045var symbolType = ApplyUnconditionalAnnotations(property.TypeWithAnnotations, symbolAnnotations); 1052var overriddenType = ApplyUnconditionalAnnotations(overriddenProperty.TypeWithAnnotations, overriddenAnnotations); 4734TrackNullableStateForAssignment(argument, property.TypeWithAnnotations, slot, argumentType, MakeSlot(argument)); 4740SetAnalyzedNullability(currentDeclaration, new VisitResult(argumentType, property.TypeWithAnnotations)); 10523var type = property.TypeWithAnnotations; 11411var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 11412SetResult(node, resultType, indexer.TypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
537var 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)
559if (property.TypeWithAnnotations.HasType && property.Type.SpecialType == SpecialType.System_String &&
Symbols\MemberSymbolExtensions.cs (1)
488var type = property.TypeWithAnnotations;
Symbols\NativeIntegerTypeSymbol.cs (1)
502public override TypeWithAnnotations TypeWithAnnotations => _container.SubstituteUnderlyingType(_underlyingProperty.TypeWithAnnotations);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
898var propertyType = property.TypeWithAnnotations;
Symbols\PropertySymbol.cs (3)
91public TypeSymbol Type => TypeWithAnnotations.Type; 404if (DeriveUseSiteInfoFromType(ref result, this.TypeWithAnnotations, AllowedRequiredModifierType.None) || 417if (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)
1090Retarget(property.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode),
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4471var propertyParamType = (((i == numParams - 1) && !getNotSet) ? propertySymbol.TypeWithAnnotations : propertyParams[i].TypeWithAnnotations).Type; 5147&& prop.TypeWithAnnotations.Equals(param.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1054TypeWithAnnotations overridingMemberType = overridingProperty.TypeWithAnnotations; 1055TypeWithAnnotations overriddenMemberType = overriddenProperty.TypeWithAnnotations;
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
292var type = associatedProperty.TypeWithAnnotations;
Symbols\Source\SourcePropertySymbolBase.cs (1)
253TypeWithAnnotations overriddenPropertyType = overriddenOrImplementedProperty.TypeWithAnnotations;
Symbols\SubstitutedPropertySymbol.cs (1)
31var type = _containingType.TypeSubstitution.SubstituteType(OriginalDefinition.TypeWithAnnotations);
Symbols\Symbol.cs (1)
1680builder.AddValue(((PropertySymbol)this).TypeWithAnnotations);
Symbols\SymbolExtensions.cs (1)
494returnType = property.TypeWithAnnotations;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
35public override TypeWithAnnotations TypeWithAnnotations => _interfaceProperty.TypeWithAnnotations;
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
112public override TypeWithAnnotations TypeWithAnnotations => ((PropertySymbol)((SourcePropertyAccessorSymbol)ContainingSymbol).AssociatedSymbol).TypeWithAnnotations;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (30)
CodeGen\CodeGenTupleTest.cs (2)
15826Assert.True(m1P1.TypeWithAnnotations.CustomModifiers.IsEmpty); 15856Assert.True(m1this.TypeWithAnnotations.CustomModifiers.IsEmpty);
Emit\EmitMetadataTests.cs (1)
1168var type = property.TypeWithAnnotations;
Emit\InAttributeModifierTests.cs (27)
1780Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 1800Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 1821Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 1842Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 1903Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 1923Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 1945Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 2972Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 2995Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3017Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3041Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3063Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3087Assert.Empty(implicitproperty.TypeWithAnnotations.CustomModifiers); 3109Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3133Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3155Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3179Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3448Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3472Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3494Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3518Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3540Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3564Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3586Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3610Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3632Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3656Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (29)
Semantics\NativeIntegerTests.cs (2)
579verifyTypes(property.TypeWithAnnotations, underlyingProperty.TypeWithAnnotations);
Semantics\NullableReferenceTypesTests.cs (27)
8936Assert.Equal(NullableAnnotation.Oblivious, c.GetMember<PropertySymbol>("C.P").TypeWithAnnotations.NullableAnnotation); 8938Assert.Equal(NullableAnnotation.Oblivious, indexer.TypeWithAnnotations.NullableAnnotation); 8989verifyTuple(c.GetMember<PropertySymbol>("C.P").TypeWithAnnotations); 12885Assert.False(member.TypeWithAnnotations.Equals(member.OverriddenProperty.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 12890Assert.True(member.TypeWithAnnotations.Equals(member.OverriddenProperty.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 12899Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 12900Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 13036Assert.False(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 13042Assert.True(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 13051Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 13052Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 13127Assert.False(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 13133Assert.True(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 13142Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 13143Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16650Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16651Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16735Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16736Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16820Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16821Assert.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)
469CheckCustomModifier(onType, property.TypeWithAnnotations.CustomModifiers); 1911Assert.Equal(int8Type, baseProperty.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1912Assert.Equal(int8Type, derivedProperty.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1914Assert.Equal(int8Type, baseIndexer.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1915Assert.Equal(int8Type, derivedIndexer.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2110Assert.Equal(int8Type, interfaceProperty.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2111Assert.Equal(int8Type, implementationProperty.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2113Assert.Equal(int8Type, interfaceIndexer.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2114Assert.Equal(int8Type, implementationIndexer.TypeWithAnnotations.CustomModifiers.Single().Modifier());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
61return AddIfUsesIsNullable(symbol, symbol.TypeWithAnnotations, inProgress: null) ||