1 write to Location
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
109Location = location;
34 references to Location
Microsoft.CodeAnalysis.CSharp (34)
Symbols\Source\SourcePropertySymbol.cs (10)
587diagnostics.Add((this.IsIndexer ? ErrorCode.ERR_BadVisIndexerReturn : ErrorCode.ERR_BadVisPropertyType), Location, this, type.Type); 600diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, type.Type, containingType); 604diagnostics.Add(Location, useSiteInfo); 610diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType, Location); 614diagnostics.Add(ErrorCode.ERR_PropertyCantHaveVoidType, Location, this); 685diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam, Location, this, param.Type); 689diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, param.Type, containingTypeForFileTypeCheck); 693diagnostics.Add(ErrorCode.ERR_DuplicateGeneratedName, param.TryGetFirstLocation() ?? Location, param.Name); 713diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam, Location, this, extensionParameter.Type); 716diagnostics.Add(Location, useSiteInfo);
Symbols\Source\SourcePropertySymbolBase.cs (22)
308diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface, Location); 312diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty, Location); 544return new LexicalSortKey(Location, this.DeclaringCompilation); 547public sealed override Location TryGetFirstLocation() => Location; 553return ImmutableArray.Create(Location); 874this.CheckAccessibility(Location, diagnostics, isExplicitInterfaceImplementation); 875this.CheckModifiers(isExplicitInterfaceImplementation, Location, IsIndexer, diagnostics); 883diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, Location); 892diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct, Location); 896diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly, Location, this); 902WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location: Location); 906diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, Location); 916diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet, Location); 928diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, Location); 949diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods, Location, this); 953diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods, Location, this); 966diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors, Location, this); 972diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, Location); 991diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor, Location, this); 997diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor, Location, this); 1192diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.Location, this, otherAccessor); 1829this.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)
104=> _property.Location;