1 write to Location
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
108
Location
= location;
33 references to Location
Microsoft.CodeAnalysis.CSharp (33)
Symbols\Source\SourcePropertySymbol.cs (9)
574
diagnostics.Add((this.IsIndexer ? ErrorCode.ERR_BadVisIndexerReturn : ErrorCode.ERR_BadVisPropertyType),
Location
, this, type.Type);
579
diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature,
Location
, type.Type, ContainingType);
582
diagnostics.Add(
Location
, useSiteInfo);
588
diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType,
Location
);
592
diagnostics.Add(ErrorCode.ERR_PropertyCantHaveVoidType,
Location
, this);
657
diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam,
Location
, this, param.Type);
661
diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature,
Location
, param.Type, this.ContainingType);
665
diagnostics.Add(ErrorCode.ERR_DuplicateGeneratedName, param.TryGetFirstLocation() ??
Location
, param.Name);
669
diagnostics.Add(
Location
, useSiteInfo);
Symbols\Source\SourcePropertySymbolBase.cs (22)
307
diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface,
Location
);
311
diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty,
Location
);
521
return new LexicalSortKey(
Location
, this.DeclaringCompilation);
524
public sealed override Location TryGetFirstLocation() =>
Location
;
530
return ImmutableArray.Create(
Location
);
859
this.CheckAccessibility(
Location
, diagnostics, isExplicitInterfaceImplementation);
860
this.CheckModifiers(isExplicitInterfaceImplementation,
Location
, IsIndexer, diagnostics);
868
diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired,
Location
);
877
diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct,
Location
);
881
diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly,
Location
, this);
887
WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location:
Location
);
891
diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning,
Location
);
901
diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet,
Location
);
913
diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields,
Location
);
934
diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods,
Location
, this);
938
diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods,
Location
, this);
951
diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors,
Location
, this);
957
diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor,
Location
);
976
diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor,
Location
, this);
982
diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor,
Location
, this);
1173
diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.
Location
, this, otherAccessor);
1804
this.Type.CheckAllConstraints(DeclaringCompilation, conversions,
Location
, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
82
return (TypeWithAnnotations.Create(Binder.GetWellKnownType(DeclaringCompilation, WellKnownType.System_Type, diagnostics,
Location
), NullableAnnotation.NotAnnotated),
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
101
=> _property.
Location
;