1 write to Location
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
109Location = 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)
308diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface, Location); 312diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty, Location); 522return new LexicalSortKey(Location, this.DeclaringCompilation); 525public sealed override Location TryGetFirstLocation() => Location; 531return ImmutableArray.Create(Location); 852this.CheckAccessibility(Location, diagnostics, isExplicitInterfaceImplementation); 853this.CheckModifiers(isExplicitInterfaceImplementation, Location, IsIndexer, diagnostics); 861diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, Location); 870diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct, Location); 874diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly, Location, this); 880WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location: Location); 884diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, Location); 894diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet, Location); 906diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, Location); 927diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods, Location, this); 931diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods, Location, this); 944diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors, Location, this); 950diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, Location); 969diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor, Location, this); 975diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor, Location, this); 1166diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.Location, this, otherAccessor); 1797this.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;