1 write to Location
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
95Location = location;
30 references to Location
Microsoft.CodeAnalysis.CSharp (30)
Symbols\Source\SourcePropertySymbol.cs (9)
459diagnostics.Add((this.IsIndexer ? ErrorCode.ERR_BadVisIndexerReturn : ErrorCode.ERR_BadVisPropertyType), Location, this, type.Type); 464diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, type.Type, ContainingType); 467diagnostics.Add(Location, useSiteInfo); 473diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType, Location); 477diagnostics.Add(ErrorCode.ERR_PropertyCantHaveVoidType, Location, this); 542diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam, Location, this, param.Type); 546diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, param.Type, this.ContainingType); 550diagnostics.Add(ErrorCode.ERR_DuplicateGeneratedName, param.Locations.FirstOrDefault() ?? Location, param.Name); 554diagnostics.Add(Location, useSiteInfo);
Symbols\Source\SourcePropertySymbolBase.cs (19)
446return new LexicalSortKey(Location, this.DeclaringCompilation); 453return ImmutableArray.Create(Location); 661this.CheckAccessibility(Location, diagnostics, isExplicitInterfaceImplementation); 662this.CheckModifiers(isExplicitInterfaceImplementation, Location, IsIndexer, diagnostics); 667CheckInitializer(IsAutoProperty, ContainingType.IsInterface, IsStatic, Location, diagnostics); 673diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, Location); 684diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct, Location); 688diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly, Location, this); 694WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location: Location); 698diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, Location); 704diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet, Location); 726diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods, Location, this); 730diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods, Location, this); 743diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors, Location, this); 749diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, Location); 765diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor, Location, this); 771diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor, Location, this); 949diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.Location, this, otherAccessor); 1493this.Type.CheckAllConstraints(DeclaringCompilation, conversions, Location, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
76return (TypeWithAnnotations.Create(Binder.GetWellKnownType(DeclaringCompilation, WellKnownType.System_Type, diagnostics, Location), NullableAnnotation.NotAnnotated),
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
101=> _property.Location;