1 write to Location
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
110Location = location;
34 references to Location
Microsoft.CodeAnalysis.CSharp (34)
Symbols\Source\SourcePropertySymbol.cs (10)
584diagnostics.Add((this.IsIndexer ? ErrorCode.ERR_BadVisIndexerReturn : ErrorCode.ERR_BadVisPropertyType), Location, this, type.Type); 597diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, type.Type, containingType); 601diagnostics.Add(Location, useSiteInfo); 607diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType, Location); 611diagnostics.Add(ErrorCode.ERR_PropertyCantHaveVoidType, Location, this); 682diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam, Location, this, param.Type); 686diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, param.Type, containingTypeForFileTypeCheck); 690diagnostics.Add(ErrorCode.ERR_DuplicateGeneratedName, param.TryGetFirstLocation() ?? Location, param.Name); 710diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam, Location, this, extensionParameter.Type); 713diagnostics.Add(Location, useSiteInfo);
Symbols\Source\SourcePropertySymbolBase.cs (22)
309diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface, Location); 313diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty, Location); 545return new LexicalSortKey(Location, this.DeclaringCompilation); 548public sealed override Location TryGetFirstLocation() => Location; 554return ImmutableArray.Create(Location); 877this.CheckAccessibility(Location, diagnostics, isExplicitInterfaceImplementation); 878this.CheckModifiers(isExplicitInterfaceImplementation, Location, IsIndexer, diagnostics); 886diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, Location); 895diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct, Location); 899diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly, Location, this); 905WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location: Location); 909diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, Location); 919diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet, Location); 931diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, Location); 952diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods, Location, this); 956diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods, Location, this); 969diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors, Location, this); 975diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, Location); 994diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor, Location, this); 1000diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor, Location, this); 1210diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.Location, this, otherAccessor); 1876this.Type.CheckAllConstraints(DeclaringCompilation, conversions, Location, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
84return (TypeWithAnnotations.Create(Binder.GetWellKnownType(DeclaringCompilation, WellKnownType.System_Type, diagnostics, Location), NullableAnnotation.NotAnnotated),
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
105=> _property.Location;