1 write to Location
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
109
Location
= location;
34 references to Location
Microsoft.CodeAnalysis.CSharp (34)
Symbols\Source\SourcePropertySymbol.cs (10)
587
diagnostics.Add((this.IsIndexer ? ErrorCode.ERR_BadVisIndexerReturn : ErrorCode.ERR_BadVisPropertyType),
Location
, this, type.Type);
600
diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature,
Location
, type.Type, containingType);
604
diagnostics.Add(
Location
, useSiteInfo);
610
diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType,
Location
);
614
diagnostics.Add(ErrorCode.ERR_PropertyCantHaveVoidType,
Location
, this);
685
diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam,
Location
, this, param.Type);
689
diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature,
Location
, param.Type, containingTypeForFileTypeCheck);
693
diagnostics.Add(ErrorCode.ERR_DuplicateGeneratedName, param.TryGetFirstLocation() ??
Location
, param.Name);
713
diagnostics.Add(ErrorCode.ERR_BadVisIndexerParam,
Location
, this, extensionParameter.Type);
716
diagnostics.Add(
Location
, useSiteInfo);
Symbols\Source\SourcePropertySymbolBase.cs (22)
308
diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface,
Location
);
312
diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty,
Location
);
544
return new LexicalSortKey(
Location
, this.DeclaringCompilation);
547
public sealed override Location TryGetFirstLocation() =>
Location
;
553
return ImmutableArray.Create(
Location
);
874
this.CheckAccessibility(
Location
, diagnostics, isExplicitInterfaceImplementation);
875
this.CheckModifiers(isExplicitInterfaceImplementation,
Location
, IsIndexer, diagnostics);
883
diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired,
Location
);
892
diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct,
Location
);
896
diagnostics.Add(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly,
Location
, this);
902
WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor, diagnostics, location:
Location
);
906
diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning,
Location
);
916
diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet,
Location
);
928
diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields,
Location
);
949
diagnostics.Add(ErrorCode.ERR_DuplicatePropertyAccessMods,
Location
, this);
953
diagnostics.Add(ErrorCode.ERR_DuplicatePropertyReadOnlyMods,
Location
, this);
966
diagnostics.Add(ErrorCode.ERR_PropertyWithNoAccessors,
Location
, this);
972
diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor,
Location
);
991
diagnostics.Add(ErrorCode.ERR_AccessModMissingAccessor,
Location
, this);
997
diagnostics.Add(ErrorCode.ERR_ReadOnlyModMissingAccessor,
Location
, this);
1192
diagnostics.Add(ErrorCode.ERR_ExplicitPropertyMissingAccessor, this.
Location
, this, otherAccessor);
1829
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)
104
=> _property.
Location
;