1 write to Location
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
108Location = location;
33 references to Location
Microsoft.CodeAnalysis.CSharp (33)
Symbols\Source\SourcePropertySymbol.cs (9)
574diagnostics.Add((this.IsIndexer ? ErrorCode.ERR_BadVisIndexerReturn : ErrorCode.ERR_BadVisPropertyType), Location, this, type.Type); 579diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, type.Type, ContainingType); 582diagnostics.Add(Location, useSiteInfo); 588diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType, Location); 592diagnostics.Add(ErrorCode.ERR_PropertyCantHaveVoidType, Location, this); 657diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam, Location, this, param.Type); 661diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, param.Type, this.ContainingType); 665diagnostics.Add(ErrorCode.ERR_DuplicateGeneratedName, param.TryGetFirstLocation() ?? Location, param.Name); 669diagnostics.Add(Location, useSiteInfo);
Symbols\Source\SourcePropertySymbolBase.cs (22)
307diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface, Location); 311diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty, Location); 521return new LexicalSortKey(Location, this.DeclaringCompilation); 524public sealed override Location TryGetFirstLocation() => Location; 530return ImmutableArray.Create(Location); 859this.CheckAccessibility(Location, diagnostics, isExplicitInterfaceImplementation); 860this.CheckModifiers(isExplicitInterfaceImplementation, Location, IsIndexer, diagnostics); 868diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, Location); 877diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct, Location); 881diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly, Location, this); 887WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location: Location); 891diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, Location); 901diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet, Location); 913diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, Location); 934diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods, Location, this); 938diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods, Location, this); 951diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors, Location, this); 957diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, Location); 976diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor, Location, this); 982diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor, Location, this); 1173diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.Location, this, otherAccessor); 1799this.Type.CheckAllConstraints(DeclaringCompilation, conversions, Location, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
82return (TypeWithAnnotations.Create(Binder.GetWellKnownType(DeclaringCompilation, WellKnownType.System_Type, diagnostics, Location), NullableAnnotation.NotAnnotated),
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
101=> _property.Location;