1 write to Location
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
111Location = 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)
310diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface, Location); 314diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty, Location); 546return new LexicalSortKey(Location, this.DeclaringCompilation); 549public sealed override Location TryGetFirstLocation() => Location; 555return ImmutableArray.Create(Location); 883this.CheckAccessibility(Location, diagnostics, isExplicitInterfaceImplementation); 884this.CheckModifiers(isExplicitInterfaceImplementation, Location, IsIndexer, diagnostics); 892diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, Location); 901diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct, Location); 905diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly, Location, this); 911WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location: Location); 915diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, Location); 925diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet, Location); 937diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, Location); 958diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods, Location, this); 962diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods, Location, this); 975diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors, Location, this); 981diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, Location); 1000diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor, Location, this); 1006diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor, Location, this); 1236diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.Location, this, otherAccessor); 1885this.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;