1 write to Location
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
110
Location
= location;
34 references to Location
Microsoft.CodeAnalysis.CSharp (34)
Symbols\Source\SourcePropertySymbol.cs (10)
585
diagnostics.Add((this.IsIndexer ? ErrorCode.ERR_BadVisIndexerReturn : ErrorCode.ERR_BadVisPropertyType),
Location
, this, type.Type);
598
diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature,
Location
, type.Type, containingType);
602
diagnostics.Add(
Location
, useSiteInfo);
608
diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType,
Location
);
612
diagnostics.Add(ErrorCode.ERR_PropertyCantHaveVoidType,
Location
, this);
683
diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam,
Location
, this, param.Type);
687
diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature,
Location
, param.Type, containingTypeForFileTypeCheck);
691
diagnostics.Add(ErrorCode.ERR_DuplicateGeneratedName, param.TryGetFirstLocation() ??
Location
, param.Name);
711
diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam,
Location
, this, extensionParameter.Type);
714
diagnostics.Add(
Location
, useSiteInfo);
Symbols\Source\SourcePropertySymbolBase.cs (22)
309
diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface,
Location
);
313
diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty,
Location
);
545
return new LexicalSortKey(
Location
, this.DeclaringCompilation);
548
public sealed override Location TryGetFirstLocation() =>
Location
;
554
return ImmutableArray.Create(
Location
);
875
this.CheckAccessibility(
Location
, diagnostics, isExplicitInterfaceImplementation);
876
this.CheckModifiers(isExplicitInterfaceImplementation,
Location
, IsIndexer, diagnostics);
884
diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired,
Location
);
893
diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct,
Location
);
897
diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly,
Location
, this);
903
WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location:
Location
);
907
diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning,
Location
);
917
diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet,
Location
);
929
diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields,
Location
);
950
diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods,
Location
, this);
954
diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods,
Location
, this);
967
diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors,
Location
, this);
973
diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor,
Location
);
992
diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor,
Location
, this);
998
diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor,
Location
, this);
1198
diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.
Location
, this, otherAccessor);
1835
this.Type.CheckAllConstraints(DeclaringCompilation, conversions,
Location
, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
83
return (TypeWithAnnotations.Create(Binder.GetWellKnownType(DeclaringCompilation, WellKnownType.System_Type, diagnostics,
Location
), NullableAnnotation.NotAnnotated),
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
105
=> _property.
Location
;