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)
585diagnostics.Add((this.IsIndexer ? ErrorCode.ERR_BadVisIndexerReturn : ErrorCode.ERR_BadVisPropertyType), Location, this, type.Type); 598diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, type.Type, containingType); 602diagnostics.Add(Location, useSiteInfo); 608diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType, Location); 612diagnostics.Add(ErrorCode.ERR_PropertyCantHaveVoidType, Location, this); 683diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam, Location, this, param.Type); 687diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, param.Type, containingTypeForFileTypeCheck); 691diagnostics.Add(ErrorCode.ERR_DuplicateGeneratedName, param.TryGetFirstLocation() ?? Location, param.Name); 711diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam, Location, this, extensionParameter.Type); 714diagnostics.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); 875this.CheckAccessibility(Location, diagnostics, isExplicitInterfaceImplementation); 876this.CheckModifiers(isExplicitInterfaceImplementation, Location, IsIndexer, diagnostics); 884diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, Location); 893diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct, Location); 897diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly, Location, this); 903WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location: Location); 907diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, Location); 917diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet, Location); 929diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, Location); 950diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods, Location, this); 954diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods, Location, this); 967diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors, Location, this); 973diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, Location); 992diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor, Location, this); 998diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor, Location, this); 1198diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.Location, this, otherAccessor); 1835this.Type.CheckAllConstraints(DeclaringCompilation, conversions, Location, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
83return (TypeWithAnnotations.Create(Binder.GetWellKnownType(DeclaringCompilation, WellKnownType.System_Type, diagnostics, Location), NullableAnnotation.NotAnnotated),
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
105=> _property.Location;