11 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (11)
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)
500public 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;
Symbols\Synthesized\SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs (1)
98public override TypeWithAnnotations TypeWithAnnotations => _backingField.TypeWithAnnotations;
112 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder.ValueChecks.cs (1)
1958Debug.Assert(propertySymbol.TypeWithAnnotations.HasType);
Binder\ForEachLoopBinder.cs (1)
1052builder.ElementTypeWithAnnotations = ((PropertySymbol)builder.CurrentPropertyGetter.AssociatedSymbol).TypeWithAnnotations;
Emitter\Model\PropertySymbolAdapter.cs (1)
184return AdaptedPropertySymbol.TypeWithAnnotations.CustomModifiers.As<ICustomModifier>();
FlowAnalysis\NullableWalker.cs (8)
777symbolType = p.TypeWithAnnotations; 1062var symbolType = ApplyUnconditionalAnnotations(property.TypeWithAnnotations, symbolAnnotations); 1069var overriddenType = ApplyUnconditionalAnnotations(overriddenProperty.TypeWithAnnotations, overriddenAnnotations); 4785TrackNullableStateForAssignment(argument, property.TypeWithAnnotations, slot, argumentType, MakeSlot(argument)); 4791SetAnalyzedNullability(currentDeclaration, new VisitResult(argumentType, property.TypeWithAnnotations)); 10661var type = property.TypeWithAnnotations; 11545var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 11546SetResult(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)
493var type = property.TypeWithAnnotations;
Symbols\NativeIntegerTypeSymbol.cs (1)
500public 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)
4472var propertyParamType = (((i == numParams - 1) && !getNotSet) ? propertySymbol.TypeWithAnnotations : propertyParams[i].TypeWithAnnotations).Type; 5148&& 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)
2669Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 2689Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 2710Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 2731Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 2792Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 2812Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 2834Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3861Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3884Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3906Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3930Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3952Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3976Assert.Empty(implicitproperty.TypeWithAnnotations.CustomModifiers); 3998Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 4022Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 4044Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 4068Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 4337Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 4361Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 4383Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 4407Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 4429Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 4453Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 4475Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 4499Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 4521Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 4545Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (29)
Semantics\NativeIntegerTests.cs (2)
579verifyTypes(property.TypeWithAnnotations, underlyingProperty.TypeWithAnnotations);
Semantics\NullableReferenceTypesTests.cs (27)
8940Assert.Equal(NullableAnnotation.Oblivious, c.GetMember<PropertySymbol>("C.P").TypeWithAnnotations.NullableAnnotation); 8942Assert.Equal(NullableAnnotation.Oblivious, indexer.TypeWithAnnotations.NullableAnnotation); 8993verifyTuple(c.GetMember<PropertySymbol>("C.P").TypeWithAnnotations); 12889Assert.False(member.TypeWithAnnotations.Equals(member.OverriddenProperty.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 12894Assert.True(member.TypeWithAnnotations.Equals(member.OverriddenProperty.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 12903Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 12904Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 13040Assert.False(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 13046Assert.True(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 13055Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 13056Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 13131Assert.False(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 13137Assert.True(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions)); 13146Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 13147Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16654Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16655Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16739Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16740Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16824Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything)); 16825Assert.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) ||