src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (26)
25/// <param name="location">An optional primary location of the diagnostic. If null, <see cref="Location"/> will return <see cref="Location.None"/>.</param>
42Location location,
45IEnumerable<Location>? additionalLocations,
72/// <param name="location">An optional primary location of the diagnostic. If null, <see cref="Location"/> will return <see cref="Location.None"/>.</param>
90Location location,
93ImmutableArray<Location> additionalLocations,
94ImmutableArray<Location> additionalUnnecessaryLocations,
109Location location,
113ImmutableArray<Location> additionalLocations,
114ImmutableArray<Location> additionalUnnecessaryLocations)
136/// <param name="location">An optional primary location of the diagnostic. If null, <see cref="Location"/> will return <see cref="Location.None"/>.</param>
158Location location,
161ImmutableArray<Location> additionalLocations,
162ImmutableArray<Location> additionalUnnecessaryLocations,
179Location location,
183ImmutableArray<Location> additionalLocations,
184ImmutableArray<Location> additionalUnnecessaryLocations,
205Location location,
209IEnumerable<Location> additionalLocations,
240/// <param name="location">An optional primary location of the diagnostic. If null, <see cref="Location"/> will return <see cref="Location.None"/>.</param>
257Location location,
260IEnumerable<Location>? additionalLocations,
Binder\Binder_Expressions.cs (16)
1016var elementLocations = ArrayBuilder<Location>.GetInstance(arguments.Count);
1492internal static bool CheckManagedAddr(CSharpCompilation compilation, TypeSymbol type, Location location, BindingDiagnosticBag diagnostics, bool errorForManaged = false)
1502internal static bool CheckManagedAddr(CSharpCompilation compilation, TypeSymbol type, ManagedKind managedKind, Location location, BindingDiagnosticBag diagnostics, bool errorForManaged = false)
2482var location = thisOrBaseToken.GetLocation();
4847Location errorLocation;
4916Location errorLocation,
5055static void validateRecordCopyConstructor(MethodSymbol constructor, NamedTypeSymbol baseType, MethodSymbol resultMember, Location errorLocation, BindingDiagnosticBag diagnostics)
6167Location location = creationSyntax switch
7099Location errorLocation,
7200internal static bool ReportConstructorUseSiteDiagnostics(Location errorLocation, BindingDiagnosticBag diagnostics, bool suppressUnsupportedRequiredMembersError, in CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
7297diagnostics.Add(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 1, 1)));
7301diagnostics.Add(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 2, 1)));
9135Location location;
10865var location = syntax.Location;
10905Location location = null, SyntaxNode node = null)
10938Location getErrorLocation()
Binder\Binder_Symbols.cs (20)
456diagnostics.Add(info, Location.Create(@delegate.SyntaxTree, TextSpan.FromBounds(@delegate.SpanStart, asterisk.Span.End)));
682var locations = ArrayBuilder<Location>.GetInstance(numElements);
748internal static void ReportMissingTupleElementNamesAttributesIfNeeded(CSharpCompilation compilation, Location location, BindingDiagnosticBag diagnostics)
1662internal static NamedTypeSymbol GetSpecialType(CSharpCompilation compilation, SpecialType typeId, Location location, BindingDiagnosticBag diagnostics)
1759internal static bool ReportUseSite(Symbol symbol, BindingDiagnosticBag diagnostics, Location location)
1777internal NamedTypeSymbol GetWellKnownType(WellKnownType type, BindingDiagnosticBag diagnostics, Location location)
1791internal static NamedTypeSymbol GetWellKnownType(CSharpCompilation compilation, WellKnownType type, BindingDiagnosticBag diagnostics, Location location)
1811internal Symbol GetWellKnownTypeMember(WellKnownMember member, BindingDiagnosticBag diagnostics, Location location = null, SyntaxNode syntax = null, bool isOptional = false)
1820internal static Symbol GetWellKnownTypeMember(CSharpCompilation compilation, WellKnownMember member, BindingDiagnosticBag diagnostics, Location location = null, SyntaxNode syntax = null, bool isOptional = false)
1891Location la = snd.GetFirstLocation();
1892Location lb = fst.GetFirstLocation();
2547var location = where.Location;
2628protected virtual AssemblySymbol GetForwardedToAssemblyInUsingNamespaces(string metadataName, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location)
2633protected AssemblySymbol GetForwardedToAssembly(string fullName, BindingDiagnosticBag diagnostics, Location location)
2701protected AssemblySymbol GetForwardedToAssembly(string name, int arity, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location)
2736internal static bool CheckFeatureAvailability(SyntaxNode syntax, MessageID feature, BindingDiagnosticBag diagnostics, Location? location = null)
2742internal static bool CheckFeatureAvailability(SyntaxTree tree, MessageID feature, BindingDiagnosticBag diagnostics, Location location)
2745private static bool CheckFeatureAvailability(SyntaxNode syntax, MessageID feature, DiagnosticBag? diagnostics, Location? location = null)
2751private static bool CheckFeatureAvailability(SyntaxTree tree, MessageID feature, DiagnosticBag? diagnostics, Location location)
2757private static bool CheckFeatureAvailability<TData>(SyntaxTree tree, MessageID feature, DiagnosticBag? diagnostics, TData data, Func<TData, Location> getLocation, bool forceWarning = false)
Binder\BindingDiagnosticBag.cs (8)
105internal bool ReportUseSite(Symbol? symbol, Location location)
108internal bool ReportUseSite<TData>(Symbol? symbol, Func<TData, Location> getLocation, TData data)
149protected override bool ReportUseSiteDiagnostic(DiagnosticInfo diagnosticInfo, DiagnosticBag diagnosticBag, Location location)
154internal CSDiagnosticInfo Add(ErrorCode code, Location location)
167internal CSDiagnosticInfo Add(ErrorCode code, Location location, params object[] args)
174internal CSDiagnosticInfo Add(ErrorCode code, Location location, ImmutableArray<Symbol> symbols, params object[] args)
176var info = new CSDiagnosticInfo(code, args, symbols, ImmutableArray<Location>.Empty);
181internal void Add(DiagnosticInfo? info, Location location)
Binder\InMethodBinder.cs (5)
146RefKind refKind, TypeSymbol returnType, Location errorLocation, BindingDiagnosticBag diagnostics)
242private static bool ReportConflictWithParameter(Symbol parameter, Symbol newSymbol, string name, Location newLocation, BindingDiagnosticBag diagnostics)
247var oldLocation = parameter.GetFirstLocationOrNone();
248Debug.Assert(oldLocation != newLocation || oldLocation == Location.None || newLocation.SourceTree?.GetRoot().ContainsDiagnostics == true,
322internal override bool EnsureSingleDefinition(Symbol symbol, string name, Location location, BindingDiagnosticBag diagnostics)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (19)
190Location location,
478Location badName = arguments.Names[badArg].GetValueOrDefault().Location;
580private static void ReportUnsupportedMetadata(Location location, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, MemberResolutionResult<TMember> firstUnsupported)
595private static void ReportWrongCallingConvention(Location location, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, MemberResolutionResult<TMember> firstSupported, MethodSymbol target)
623Location location)
642Location location,
697private bool HadReturnMismatch(Location location, BindingDiagnosticBag diagnostics, TypeSymbol delegateOrFunctionPointerType)
718private bool HadConstraintFailure(Location location, BindingDiagnosticBag diagnostics)
743Location location,
799(string badName, Location location) = arguments.Names[badArg].GetValueOrDefault();
819(string badName, Location location) = arguments.Names[badArg].GetValueOrDefault();
833(string name, Location location) = arguments.Names[result.Result.FirstBadArgument].GetValueOrDefault();
859(string badName, Location location) = arguments.Names[badArg].GetValueOrDefault();
882Location location)
927Location location,
966Location location)
1086Location location,
1389private bool HadAmbiguousWorseMethods(BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, Location location, bool isQuery, BoundExpression receiver, string name)
1453private bool HadAmbiguousBestMethods(BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, Location location)
Compilation\CSharpCompilation.cs (20)
530diagnostics.Add(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition, Location.None);
1779ImmutableArray<Location>.Empty
2134additionalLocations: viableEntryPoints.Select(m => m.GetFirstLocation()).OfType<Location>().AsImmutable());
2431private ConcurrentDictionary<(string FilePath, int Position), OneOrMany<(Location AttributeLocation, MethodSymbol Interceptor)>>? _interceptions;
2433internal void AddInterception(string filePath, int position, Location attributeLocation, MethodSymbol interceptor)
2459internal (Location AttributeLocation, MethodSymbol Interceptor)? TryGetInterceptor(SimpleNameSyntax? node)
2957var location = syntaxTree.GetLocation(TextSpan.FromBounds(0, 0));
2976new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureNullableReferenceTypes.RequiredVersion())), Location.None));
3592var location = symbol.GetFirstLocation();
3619foreach ((_, OneOrMany<(Location, MethodSymbol)> interceptionsOfAGivenLocation) in _interceptions)
4119ImmutableArray<Location?> elementLocations,
4145ImmutableArray<Location?> elementLocations,
4174ImmutableArray<Location> memberLocations,
4194var location = memberLocations.IsDefault ? Location.None : memberLocations[i];
4199var descriptor = new AnonymousTypeDescriptor(fields.ToImmutableAndFree(), Location.None);
4521internal override int CompareSourceLocations(Location loc1, Location loc2)
4648internal bool HasDynamicEmitAttributes(BindingDiagnosticBag diagnostics, Location location)
4654internal bool HasTupleNamesAttributes(BindingDiagnosticBag diagnostics, Location location) =>
Emitter\Model\PEAssemblyBuilder.cs (7)
368Compilation.CheckIfAttributeShouldBeEmbedded(EmbeddableAttributes.NullablePublicOnlyAttribute, diagnostics, Location.None))
374Compilation.CheckIfAttributeShouldBeEmbedded(EmbeddableAttributes.RefSafetyRulesAttribute, diagnostics, Location.None))
611Binder.ReportUseSite(result, diagnostics, Location.None);
618Binder.ReportUseSite(result, diagnostics, Location.None);
625Binder.GetWellKnownTypeMember(compilation, WellKnownMember.System_AttributeUsageAttribute__ctor, diagnostics, Location.None);
626Binder.GetWellKnownTypeMember(compilation, WellKnownMember.System_AttributeUsageAttribute__AllowMultiple, diagnostics, Location.None);
627Binder.GetWellKnownTypeMember(compilation, WellKnownMember.System_AttributeUsageAttribute__Inherited, diagnostics, Location.None);
Errors\CSDiagnosticInfo.cs (7)
20private readonly IReadOnlyList<Location> _additionalLocations;
23: this(code, Array.Empty<object>(), ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty)
28: this(code, args, ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty)
33: this(code, args, symbols, ImmutableArray<Location>.Empty)
37internal CSDiagnosticInfo(ErrorCode code, object[] args, ImmutableArray<Symbol> symbols, ImmutableArray<Location> additionalLocations)
42_additionalLocations = additionalLocations.IsDefaultOrEmpty ? SpecializedCollections.EmptyReadOnlyList<Location>() : additionalLocations;
55public override IReadOnlyList<Location> AdditionalLocations => _additionalLocations;
Errors\DiagnosticBagExtensions.cs (6)
21internal static CSDiagnosticInfo Add(this DiagnosticBag diagnostics, ErrorCode code, Location location)
37internal static CSDiagnosticInfo Add(this DiagnosticBag diagnostics, ErrorCode code, Location location, params object[] args)
45internal static CSDiagnosticInfo Add(this DiagnosticBag diagnostics, ErrorCode code, Location location, ImmutableArray<Symbol> symbols, params object[] args)
47var info = new CSDiagnosticInfo(code, args, symbols, ImmutableArray<Location>.Empty);
53internal static void Add(this DiagnosticBag diagnostics, DiagnosticInfo info, Location location)
83Location location,
Errors\MessageProvider.cs (6)
87public override Diagnostic CreateDiagnostic(int code, Location location, params object[] args)
89var info = new CSDiagnosticInfo((ErrorCode)code, args, ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty);
95return new CSDiagnostic(info, Location.None);
128Location.None,
205public override void ReportDuplicateMetadataReferenceStrong(DiagnosticBag diagnostics, Location location, MetadataReference reference, AssemblyIdentity identity, MetadataReference equivalentReference, AssemblyIdentity equivalentIdentity)
212public override void ReportDuplicateMetadataReferenceWeak(DiagnosticBag diagnostics, Location location, MetadataReference reference, AssemblyIdentity identity, MetadataReference equivalentReference, AssemblyIdentity equivalentIdentity)
FlowAnalysis\NullableWalker.cs (22)
247/// The delegate is invoked by <see cref="VisitConversion(BoundConversion, BoundExpression, Conversion, TypeWithAnnotations, TypeWithState, bool, bool, bool, AssignmentKind, ParameterSymbol, bool, bool, bool, bool, Optional<LocalState>,bool, Location, ArrayBuilder<VisitResult>)"/>.
642var exitLocation = method is SynthesizedPrimaryConstructor || method.DeclaringSyntaxReferences.IsEmpty ? null : method.TryGetFirstLocation();
703void checkMemberStateOnConstructorExit(MethodSymbol constructor, Symbol member, LocalState state, int thisSlot, Location? exitLocation, ImmutableArray<string> membersWithStateEnforcedByRequiredMembers, bool forcePropertyAnalysis)
1211Location location;
1304var location = syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation();
2303Location? location = null)
2510private void ReportNullabilityMismatchInAssignment(Location location, object sourceType, object destinationType)
2567private void ReportNonSafetyDiagnostic(Location location)
2577private void ReportDiagnostic(ErrorCode errorCode, Location location, params object[] arguments)
8633private void ReportNullabilityMismatchWithTargetDelegate(Location location, TypeSymbol targetType, MethodSymbol targetInvokeMethod, MethodSymbol sourceInvokeMethod, bool invokedAsExtensionMethod)
8651void reportBadDelegateReturn(BindingDiagnosticBag bag, MethodSymbol targetInvokeMethod, MethodSymbol sourceInvokeMethod, bool topLevel, (TypeSymbol targetType, Location location) arg)
8658void reportBadDelegateParameter(BindingDiagnosticBag bag, MethodSymbol sourceInvokeMethod, MethodSymbol targetInvokeMethod, ParameterSymbol parameter, bool topLevel, (TypeSymbol targetType, Location location) arg)
8667private void ReportNullabilityMismatchWithTargetDelegate(Location location, NamedTypeSymbol delegateType, BoundLambda lambda)
8688location = Location.Create(lambdaSyntax.SyntaxTree, new Text.TextSpan(start, lambdaSyntax.ArrowToken.Span.End - start));
8722void reportBadDelegateReturn(BindingDiagnosticBag bag, MethodSymbol targetInvokeMethod, MethodSymbol sourceInvokeMethod, bool topLevel, Location location)
8729void reportBadDelegateParameter(BindingDiagnosticBag bag, MethodSymbol sourceInvokeMethod, MethodSymbol targetInvokeMethod, ParameterSymbol parameterSymbol, bool topLevel, Location location)
8791Location? diagnosticLocation = null,
9123Location getDiagnosticLocation()
9337Location diagnosticLocation)
9395Location operandLocation = conversionOperand.Syntax.GetLocation();
9556Location diagnosticLocation)
10626private void ReportNullabilityMismatchInArgument(Location argumentLocation, TypeSymbol argumentType, ParameterSymbol? parameterOpt, TypeSymbol parameterType, bool forOutput)
Generated\BoundNodes.xml.Generated.cs (3)
6283public BoundUnconvertedObjectCreationExpression(SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<(string Name, Location Location)?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, InitializerExpressionSyntax? initializerOpt, Binder binder, bool hasErrors = false)
6299public ImmutableArray<(string Name, Location Location)?> ArgumentNamesOpt { get; }
6307public BoundUnconvertedObjectCreationExpression Update(ImmutableArray<BoundExpression> arguments, ImmutableArray<(string Name, Location Location)?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, InitializerExpressionSyntax? initializerOpt, Binder binder)
Symbols\AliasSymbol.cs (5)
50private readonly ImmutableArray<Location> _locations; // NOTE: can be empty for the "global" alias.
55protected AliasSymbol(string aliasName, Symbol containingSymbol, ImmutableArray<Location> locations, bool isExtern)
70return new AliasSymbolFromResolvedTarget(globalNamespace, "global", globalNamespace, ImmutableArray<Location>.Empty, isExtern: false);
118public override ImmutableArray<Location> Locations
436internal AliasSymbolFromResolvedTarget(NamespaceOrTypeSymbol target, string aliasName, Symbol containingSymbol, ImmutableArray<Location> locations, bool isExtern)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (5)
25private readonly ImmutableArray<Location> _locations;
30this(container, field, fieldTypeWithAnnotations, index, ImmutableArray<Location>.Empty, includeBackingField: true)
35this(container, field, field.TypeWithAnnotations, index, ImmutableArray.Create<Location>(field.Location), includeBackingField: false)
44ImmutableArray<Location> locations,
89public override ImmutableArray<Location> Locations
Symbols\Attributes\AttributeData.cs (8)
81internal abstract Location GetAttributeArgumentLocation(int parameterIndex);
399Location syntaxLocation = GetSecurityAttributeActionSyntaxLocation(nodeOpt, typedValue, out displayString);
429Location syntaxLocation = GetSecurityAttributeActionSyntaxLocation(nodeOpt, typedValue, out displayString);
445Location syntaxLocation = GetSecurityAttributeActionSyntaxLocation(nodeOpt, typedValue, out displayString);
459Location syntaxLocation = GetSecurityAttributeActionSyntaxLocation(nodeOpt, typedValue, out displayString);
470private static Location GetSecurityAttributeActionSyntaxLocation(AttributeSyntax? nodeOpt, TypedConstant typedValue, out object displayString)
535Location argSyntaxLocation = nodeOpt?.GetNamedArgumentSyntax(filePropName)?.Location ?? NoLocation.Singleton;
634Location attributeArgumentSyntaxLocation = this.GetAttributeArgumentLocation(0);
Symbols\Compilation_WellKnownMembers.cs (12)
512private void EnsureEmbeddableAttributeExists(EmbeddableAttributes attribute, BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
528internal void EnsureIsReadOnlyAttributeExists(BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
533internal void EnsureRequiresLocationAttributeExists(BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
538internal void EnsureParamCollectionAttributeExistsAndModifyCompilation(BindingDiagnosticBag? diagnostics, Location location)
543internal void EnsureIsByRefLikeAttributeExists(BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
548internal void EnsureIsUnmanagedAttributeExists(BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
553internal void EnsureNullableAttributeExists(BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
558internal void EnsureNullableContextAttributeExists(BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
563internal void EnsureNativeIntegerAttributeExists(BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
569internal void EnsureScopedRefAttributeExists(BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
574internal bool CheckIfAttributeShouldBeEmbedded(EmbeddableAttributes attribute, BindingDiagnosticBag? diagnosticsOpt, Location locationOpt)
665private bool CheckIfAttributeShouldBeEmbedded(BindingDiagnosticBag? diagnosticsOpt, Location? locationOpt, WellKnownType attributeType, WellKnownMember attributeCtor, WellKnownMember? secondAttributeCtor = null)
Symbols\ConstraintsHelper.cs (9)
101Location location = typeParameter.GetFirstLocation();
492Location location,
529public readonly Location Location;
533public CheckConstraintsArgs(CSharpCompilation currentCompilation, ConversionsBase conversions, Location location, BindingDiagnosticBag diagnostics) :
538public CheckConstraintsArgs(CSharpCompilation currentCompilation, ConversionsBase conversions, bool includeNullability, Location location, BindingDiagnosticBag diagnostics) :
543public CheckConstraintsArgs(CSharpCompilation currentCompilation, ConversionsBase conversions, bool includeNullability, Location location, BindingDiagnosticBag diagnostics, CompoundUseSiteInfo<AssemblySymbol> template)
561public static CheckConstraintsArgsBoxed Allocate(CSharpCompilation currentCompilation, ConversionsBase conversions, Location location, BindingDiagnosticBag diagnostics)
569public static CheckConstraintsArgsBoxed Allocate(CSharpCompilation currentCompilation, ConversionsBase conversions, bool includeNullability, Location location, BindingDiagnosticBag diagnostics)
602ImmutableArray<Location> elementLocations,
Symbols\Source\ModifierUtils.cs (7)
21Location errorLocation,
43Location errorLocation,
128private static void ReportPartialError(Location errorLocation, BindingDiagnosticBag diagnostics, SyntaxTokenList? modifierTokens)
148Location errorLocation,
194internal static void ReportUnsupportedModifiersForLanguageVersion(DeclarationModifiers modifiers, DeclarationModifiers unsupportedModifiers, Location errorLocation, BindingDiagnosticBag diagnostics, LanguageVersion availableVersion, LanguageVersion requiredVersion)
211internal static void CheckFeatureAvailabilityForStaticAbstractMembersInInterfacesIfNeeded(DeclarationModifiers mods, bool isExplicitInterfaceImplementation, Location location, BindingDiagnosticBag diagnostics)
460internal static bool CheckAccessibility(DeclarationModifiers modifiers, Symbol symbol, bool isExplicitInterfaceImplementation, BindingDiagnosticBag diagnostics, Location errorLocation)
Symbols\Source\SourceAssemblySymbol.cs (13)
573public override ImmutableArray<Location> Locations
2130ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> result = null;
2194private ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> _lazyInternalsVisibleToMap;
2196private static Location GetAssemblyAttributeLocationForDiagnostic(AttributeSyntax attributeSyntaxOpt)
2218diagnostics.Add(useSiteInfo, useSiteInfo.DiagnosticInfo is object ? GetAssemblyAttributeLocationForDiagnostic(arguments.AttributeSyntaxOpt) : Location.None))
2272ref ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> lazyInternalsVisibleToMap)
2306new ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>>(StringComparer.OrdinalIgnoreCase), null);
2313Tuple<Location, string> locationAndValue = null;
2320locationAndValue = new Tuple<Location, string>(GetAssemblyAttributeLocationForDiagnostic(nodeOpt), displayName);
2326ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> keys = null;
2333keys = new ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>();
2402Location attributeArgumentSyntaxLocation = attribute.GetAttributeArgumentLocation(0);
2415Location attributeArgumentSyntaxLocation = attribute.GetAttributeArgumentLocation(0);
Symbols\Source\SourceConstructorSymbol.cs (4)
27Location location,
86Location location,
123NamedTypeSymbol containingType, ConstructorDeclarationSyntax syntax, MethodKind methodKind, bool hasBody, Location location, BindingDiagnosticBag diagnostics,
165private void CheckModifiers(MethodKind methodKind, bool hasBody, Location location, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceDestructorSymbol.cs (5)
23base(containingType, syntax.GetReference(), GetSymbolLocation(syntax, out Location location), isIterator: SyntaxFacts.HasYieldOperations(syntax.Body),
64private static (DeclarationModifiers, Flags) MakeModifiersAndFlags(NamedTypeSymbol containingType, DestructorDeclarationSyntax syntax, bool isNullableAnalysisEnabled, Location location, BindingDiagnosticBag diagnostics, out bool modifierErrors)
75private static Location GetSymbolLocation(DestructorDeclarationSyntax syntax, out Location location)
129private static DeclarationModifiers MakeModifiers(NamedTypeSymbol containingType, SyntaxTokenList modifiers, Location location, BindingDiagnosticBag diagnostics, out bool modifierErrors)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (17)
229var info = new CSDiagnosticInfo(ErrorCode.ERR_MixingWinRTEventWithRegular, args, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<Location>(this.GetFirstLocation()));
328Location location = implementingMember.IsFromCompilation(this.DeclaringCompilation)
342protected abstract Location GetCorrespondingBaseListLocation(NamedTypeSymbol @base);
345private Location GetImplementsLocationOrFallback(NamedTypeSymbol implementedInterface)
350internal Location? GetImplementsLocation(NamedTypeSymbol implementedInterface)
695Location symbolLocation = symbol.TryGetFirstLocation();
757var overridingMemberLocation = overridingMember.GetFirstLocation();
869var overridingMemberLocation = overridingMember.GetFirstLocation();
1046var overridingMemberLocation = overridingProperty.GetFirstLocation();
1147Location overridingMemberLocation,
1205Location symbolLocation = overridingSymbol.TryGetFirstLocation();
1216private static readonly ReportMismatchInReturnType<Location> ReportBadReturn =
1217(BindingDiagnosticBag diagnostics, MethodSymbol overriddenMethod, MethodSymbol overridingMethod, bool topLevel, Location location)
1223private static readonly ReportMismatchInParameterType<Location> ReportBadParameter =
1224(BindingDiagnosticBag diagnostics, MethodSymbol overriddenMethod, MethodSymbol overridingMethod, ParameterSymbol overridingParameter, bool topLevel, Location location)
1558var hidingMemberLocation = hidingMember.GetFirstLocation();
1639private static bool AddHidingAbstractDiagnostic(Symbol hidingMember, Location hidingMemberLocation, Symbol hiddenMember, BindingDiagnosticBag diagnostics, ref bool suppressAccessors)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (8)
50Location location,
90NamedTypeSymbol containingType, Location location, MethodDeclarationSyntax syntax, MethodKind methodKind,
266protected sealed override Location ReturnTypeLocation => GetSyntax().ReturnType.Location;
424private static DeclarationModifiers MakeDeclarationModifiers(MethodDeclarationSyntax syntax, NamedTypeSymbol containingType, Location location, DeclarationModifiers allowedModifiers, BindingDiagnosticBag diagnostics)
687private static (DeclarationModifiers mods, bool hasExplicitAccessMod) MakeModifiers(MethodDeclarationSyntax syntax, NamedTypeSymbol containingType, MethodKind methodKind, bool hasBody, Location location, BindingDiagnosticBag diagnostics)
793private void CheckModifiers(bool isExplicitInterfaceImplementation, Location location, BindingDiagnosticBag diagnostics)
920Location location,
978Location location,
Symbols\Source\SourcePropertyAccessorSymbol.cs (7)
90Location location,
116Location location,
143Location location,
177Location location,
223NamedTypeSymbol containingType, SourcePropertySymbolBase property, DeclarationModifiers propertyModifiers, Location location,
493bool hasBody, Location location, BindingDiagnosticBag diagnostics, out bool modifierErrors)
524private void CheckModifiers(Location location, bool hasBody, bool isAutoPropertyOrExpressionBodied, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceTypeParameterSymbol.cs (7)
26private readonly ImmutableArray<Location> _locations;
34protected SourceTypeParameterSymbolBase(string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs)
44public override ImmutableArray<Location> Locations
316Location getLocation() => this.GetNonNullSyntaxNode().Location;
464public SourceTypeParameterSymbol(SourceNamedTypeSymbol owner, string name, int ordinal, VarianceKind varianceKind, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs)
609public SourceMethodTypeParameterSymbol(SourceMethodSymbol owner, string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs)
870public SourceOverridingMethodTypeParameterSymbol(OverriddenMethodTypeParameterMapBase map, string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs)
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (4)
29Location location,
125protected static DeclarationModifiers MakeDeclarationModifiers(MethodKind methodKind, bool inInterface, BaseMethodDeclarationSyntax syntax, Location location, BindingDiagnosticBag diagnostics)
207static void reportModifierIfPresent(DeclarationModifiers result, DeclarationModifiers errorModifier, Location location, BindingDiagnosticBag diagnostics, CSharpRequiredLanguageVersion requiredVersionArgument, string availableVersionArgument)
729var location = this.GetFirstLocation();
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (1)
47Location.None,
Symbols\Tuples\TupleTypeSymbol.cs (21)
31Location? locationOpt,
33ImmutableArray<Location?> elementLocations,
61var locations = locationOpt is null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(locationOpt);
104ImmutableArray<Location?> elementLocations = default,
105ImmutableArray<Location> locations = default)
162ImmutableArray<Location?> newElementLocations,
164ImmutableArray<Location> locations)
504diagnostics.Add(useSiteInfo, static syntax => syntax?.Location ?? Location.None, syntax);
556private ImmutableArray<Location?> TupleElementLocations
626ImmutableArray<Location> locations = getElementLocations(in elementLocations, tupleFieldIndex);
748var location = elementLocations.IsDefault ? null : elementLocations[i];
842static ImmutableArray<Location> getElementLocations(in ImmutableArray<Location?> elementLocations, int tupleFieldIndex)
846return ImmutableArray<Location>.Empty;
849var elementLocation = elementLocations[tupleFieldIndex];
850return elementLocation == null ? ImmutableArray<Location>.Empty : ImmutableArray.Create(elementLocation);
895internal ImmutableArray<Location?> ElementLocations { get; }
904internal ImmutableArray<Location> Locations { get; }
927Locations = ImmutableArray<Location>.Empty;
931ImmutableArray<Location?> elementLocations, ImmutableArray<bool> errorPositions, ImmutableArray<Location> locations)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (10)
132var additionalLocations = ImmutableArray.Create<Location>(
133Location.Create(tree, ifStatement.Span),
134Location.Create(tree, expressionStatement.Span));
170ImmutableArray<Location> additionalLocations,
182var fadeLocation = Location.Create(tree, TextSpan.FromBounds(firstStatement.SpanStart, previousToken.Span.End));
203fadeLocation = Location.Create(tree, TextSpan.FromBounds(nextToken.Span.Start, ifStatement.Span.End));
321Location.Create(tree, localDeclarationStatement.Span),
322Location.Create(tree, ifStatement.Span),
323Location.Create(tree, expressionStatement.Span));
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (10)
132var additionalLocations = ImmutableArray.Create<Location>(
133Location.Create(tree, ifStatement.Span),
134Location.Create(tree, expressionStatement.Span));
170ImmutableArray<Location> additionalLocations,
182var fadeLocation = Location.Create(tree, TextSpan.FromBounds(firstStatement.SpanStart, previousToken.Span.End));
203fadeLocation = Location.Create(tree, TextSpan.FromBounds(nextToken.Span.Start, ifStatement.Span.End));
321Location.Create(tree, localDeclarationStatement.Span),
322Location.Create(tree, ifStatement.Span),
323Location.Create(tree, expressionStatement.Span));
EditAndContinue\EditSession.cs (6)
140return Diagnostic.Create(descriptor, Location.None);
171await foreach (var location in CreateChangedLocationsAsync(oldProject, newProject, documentAnalyses, cancellationToken).ConfigureAwait(false))
179private static async IAsyncEnumerable<Location> CreateChangedLocationsAsync(Project oldProject, Project newProject, ImmutableArray<DocumentAnalysisResults> documentAnalyses, [EnumeratorCancellation] CancellationToken cancellationToken)
202yield return Location.Create(newTree, GetFirstLineDifferenceSpan(oldText, newText));
208yield return Location.None;
546documentDiagnostics.Add(Diagnostic.Create(descriptor, Location.Create(newDocument.FilePath!, textSpan: default, lineSpan: default), [newDocument.FilePath]));
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (26)
25/// <param name="location">An optional primary location of the diagnostic. If null, <see cref="Location"/> will return <see cref="Location.None"/>.</param>
42Location location,
45IEnumerable<Location>? additionalLocations,
72/// <param name="location">An optional primary location of the diagnostic. If null, <see cref="Location"/> will return <see cref="Location.None"/>.</param>
90Location location,
93ImmutableArray<Location> additionalLocations,
94ImmutableArray<Location> additionalUnnecessaryLocations,
109Location location,
113ImmutableArray<Location> additionalLocations,
114ImmutableArray<Location> additionalUnnecessaryLocations)
136/// <param name="location">An optional primary location of the diagnostic. If null, <see cref="Location"/> will return <see cref="Location.None"/>.</param>
158Location location,
161ImmutableArray<Location> additionalLocations,
162ImmutableArray<Location> additionalUnnecessaryLocations,
179Location location,
183ImmutableArray<Location> additionalLocations,
184ImmutableArray<Location> additionalUnnecessaryLocations,
205Location location,
209IEnumerable<Location> additionalLocations,
240/// <param name="location">An optional primary location of the diagnostic. If null, <see cref="Location"/> will return <see cref="Location.None"/>.</param>
257Location location,
260IEnumerable<Location>? additionalLocations,
Binding\Binder.vb (9)
659Public Function GetLocation(span As TextSpan) As Location
881Public Shared Sub ReportDiagnostic(diagBag As DiagnosticBag, location As Location, id As ERRID)
885Public Shared Sub ReportDiagnostic(diagBag As DiagnosticBag, location As Location, id As ERRID, ParamArray args As Object())
889Public Shared Sub ReportDiagnostic(diagBag As DiagnosticBag, location As Location, info As DiagnosticInfo)
911Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, location As Location, id As ERRID)
915Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, location As Location, id As ERRID, ParamArray args As Object())
919Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, location As Location, info As DiagnosticInfo)
932Public Shared Function ReportUseSite(diagBag As BindingDiagnosticBag, location As Location, useSiteInfo As UseSiteInfo(Of AssemblySymbol)) As Boolean
1104location As Location,
Binding\Binder_Query.vb (6)
1961ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod)
2000ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod)
2040Location.Create(groupJoin.SyntaxTree, GetQueryOperatorNameSpan(groupJoin.GroupKeyword, groupJoin.JoinKeyword)),
2076Location.Create(groupJoin.SyntaxTree, GetQueryOperatorNameSpan(groupJoin.GroupKeyword, groupJoin.JoinKeyword)),
4664diagnosticLocationOpt:=Location.Create(node.SyntaxTree, operatorNameLocation))
4716ReportDiagnostic(diagnostics, Location.Create(node.SyntaxTree, operatorNameLocation), ERRID.ERR_QueryOperatorNotFound, operatorName)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (13)
40Private _inProgressIncludeElementNodes As HashSet(Of Location)
442Dim location As location = GetIncludeElementLocation(includeElement, currentXmlFilePath, originatingSyntax)
546Private Function ShouldProcessLocation(loc As Location) As Boolean
552Private Function GenerateDiagnostic(suppressDiagnostic As Boolean, loc As Location, id As ERRID, ParamArray arguments As Object()) As String
560Private Function GenerateDiagnostic(loc As Location, id As ERRID, ParamArray arguments As Object()) As String
564Private Function AddIncludeElementLocation(location As Location) As Boolean
566Me._inProgressIncludeElementNodes = New HashSet(Of location)()
572Private Function RemoveIncludeElementLocation(location As Location) As Boolean
579Private Function GetIncludeElementLocation(includeElement As XElement, ByRef currentXmlFilePath As String, ByRef originatingSyntax As XmlNodeSyntax) As Location
580Dim location As location = includeElement.Annotation(Of location)()
713Private Sub ProcessErrorLocations(currentXmlLocation As XmlLocation, referenceName As String, useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), errorLocations As ImmutableArray(Of Location), errid As Nullable(Of ERRID))
767Dim loc As Location = XmlLocation.Create(attribute, currentXmlFilePath)
Errors\MessageProvider.vb (7)
88Public Overrides Function CreateDiagnostic(code As Integer, location As Location, ParamArray args() As Object) As Diagnostic
93Return New VBDiagnostic(info, Location.None)
121Location.None,
386Public Overrides Sub ReportDuplicateMetadataReferenceStrong(diagnostics As DiagnosticBag, location As Location, reference As MetadataReference, identity As AssemblyIdentity, equivalentReference As MetadataReference, equivalentIdentity As AssemblyIdentity)
388DirectCast(location, Location),
393Public Overrides Sub ReportDuplicateMetadataReferenceWeak(diagnostics As DiagnosticBag, location As Location, reference As MetadataReference, identity As AssemblyIdentity, equivalentReference As MetadataReference, equivalentIdentity As AssemblyIdentity)
395DirectCast(location, Location),
Symbols\Attributes\AttributeData.vb (12)
252Friend Shared Function GetArgumentLocation(nodeOpt As AttributeSyntax, argumentIndex As Integer) As Location
256Private Shared Function GetArgumentDisplayAndLocation(nodeOpt As AttributeSyntax, value As Integer, argumentIndex As Integer) As (ArgumentDisplay As String, Location As Location)
269Friend Shared Function GetFirstArgumentLocation(nodeOpt As AttributeSyntax) As Location
273Private Shared Function GetFirstArgumentDisplayAndLocation(nodeOpt As AttributeSyntax, value As Integer) As (ArgumentDisplay As String, Location As Location)
296Dim displayAndLocation As (ArgumentDisplay As String, Location As Location) = GetFirstArgumentDisplayAndLocation(nodeOpt, securityAction)
325Dim displayAndLocation As (ArgumentDisplay As String, Location As Location) = GetFirstArgumentDisplayAndLocation(nodeOpt, securityAction)
337Dim displayAndLocation As (ArgumentDisplay As String, Location As Location) = GetFirstArgumentDisplayAndLocation(nodeOpt, securityAction)
348Dim displayAndLocation As (ArgumentDisplay As String, Location As Location) = GetFirstArgumentDisplayAndLocation(nodeOpt, securityAction)
396Dim argSyntaxLocation As Location = If(arguments.AttributeSyntaxOpt IsNot Nothing,
448Dim location As Location = GetFirstArgumentLocation(nodeOpt)
456Dim location As Location = GetFirstArgumentLocation(node)
498Dim location As Location = GetFirstArgumentLocation(nodeOpt)
Symbols\Source\SourceAssemblySymbol.vb (10)
74Private _lazyInternalsVisibleToMap As ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)))
818Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
914Dim result As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing
984New ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)))(StringComparer.OrdinalIgnoreCase), Nothing)
991Dim locationAndValue As Tuple(Of Location, String) = Nothing
997locationAndValue = New Tuple(Of Location, String)(If(nodeOpt IsNot Nothing, nodeOpt.GetLocation(), NoLocation.Singleton), displayName)
1003Dim keys As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing
1007keys = New ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String))
1045Dim attributeArgumentSyntaxLocation As Location = GetAssemblyAttributeFirstArgumentLocation(arguments.AttributeSyntaxOpt)
1162Private Shared Function GetAssemblyAttributeFirstArgumentLocation(attributeSyntaxOpt As AttributeSyntax) As Location
Symbols\Source\SourceMemberContainerTypeSymbol.vb (22)
120Dim bestLocation As Location = best.Location
482Private Function GetImplementsLocation(implementedInterface As NamedTypeSymbol, ByRef directInterface As NamedTypeSymbol) As Location
502Private Function GetImplementsLocation(implementedInterface As NamedTypeSymbol) As Location
507Protected MustOverride Function GetInheritsOrImplementsLocation(base As NamedTypeSymbol, getInherits As Boolean) As Location
540location As Location,
971Dim location As Location
1014Dim location As Location
1045Dim location As Location = param.Locations(0)
1085Dim location As Location
1121Dim location As Location
1376Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
1786Dim bestPartialMethodLocation As Location = bestPartialMethod.NonMergedLocation
1791Dim bestImplLocation As Location = Nothing
1802Dim candidateLocation As Location = candidate.NonMergedLocation
1896implMethodLocation As Location,
2319Private Sub CheckDefaultPropertyAgainstAllBases(namedType As NamedTypeSymbol, defaultPropertyName As String, location As Location, diagBag As BindingDiagnosticBag)
2331Private Sub CheckDefaultPropertyAgainstBase(defaultPropertyName As String, baseType As NamedTypeSymbol, location As Location, diagBag As BindingDiagnosticBag)
3840Private Sub ReportOverloadsErrors(comparisonResults As SymbolComparisonResults, firstMember As Symbol, secondMember As Symbol, location As Location, diagnostics As BindingDiagnosticBag)
3905Dim location1, location2 As Location
3955Dim location1, location2 As Location
3987Dim location1 As Location = GetImplementsLocation(interface1, directInterface1)
3988Dim location2 As Location = GetImplementsLocation(interface2, directInterface2)
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionConstructorSymbol.vb (1)
72Location.None,
Symbols\Tuples\TupleTypeSymbol.vb (21)
19Private ReadOnly _locations As ImmutableArray(Of Location)
21Private ReadOnly _elementLocations As ImmutableArray(Of Location)
158Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)
332Private Sub New(locationOpt As Location, underlyingType As NamedTypeSymbol, elementLocations As ImmutableArray(Of Location),
336Me.New(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)),
340Private Sub New(locations As ImmutableArray(Of Location), underlyingType As NamedTypeSymbol,
341elementLocations As ImmutableArray(Of Location), elementNames As ImmutableArray(Of String),
360locationOpt As Location,
362elementLocations As ImmutableArray(Of Location),
392Return TupleTypeSymbol.Create(ImmutableArray(Of Location).Empty, tupleCompatibleType, Nothing, Nothing, Nothing)
396Return TupleTypeSymbol.Create(ImmutableArray(Of Location).Empty, tupleCompatibleType, Nothing, elementNames, errorPositions:=Nothing)
399Public Shared Function Create(locationOpt As Location, tupleCompatibleType As NamedTypeSymbol,
400elementLocations As ImmutableArray(Of Location), elementNames As ImmutableArray(Of String),
403Return TupleTypeSymbol.Create(If((locationOpt Is Nothing), ImmutableArray(Of Location).Empty, ImmutableArray.Create(Of Location)(locationOpt)),
407Public Shared Function Create(locations As ImmutableArray(Of Location), tupleCompatibleType As NamedTypeSymbol,
408elementLocations As ImmutableArray(Of Location), elementNames As ImmutableArray(Of String),
447Dim extensionTuple As TupleTypeSymbol = TupleTypeSymbol.Create(CType(Nothing, Location), tupleCompatibleType, Nothing, Nothing, Nothing)
497Return New TupleTypeSymbol(CType(Nothing, Location), Me._underlyingType, Nothing, newElementNames, Me._elementTypes, Nothing)
FindSymbols\ReferenceLocation.cs (10)
32public Location Location { get; }
60/// Otherwise, <see cref="Location.None"/>.
62internal Location ContainingStringLocation { get; }
69Location location,
74Location containingStringLocation)
89internal ReferenceLocation(Document document, IAliasSymbol? alias, Location location, bool isImplicit, SymbolUsageInfo symbolUsageInfo, ImmutableArray<(string key, string value)> additionalProperties, CandidateReason candidateReason)
90: this(document, alias, location, isImplicit, symbolUsageInfo, additionalProperties, candidateReason, containingStringLocation: Location.None)
98internal ReferenceLocation(Document document, Location location, Location containingStringLocation)
117EqualityComparer<Location>.Default.Equals(this.Location, other.Location) &&
Rename\ConflictEngine\ConflictResolver.cs (13)
101var renameSymbolDeclarationLocation = renameLocations.Symbol.Locations.Where(loc => loc.IsInSource).FirstOrDefault();
116Location renameSymbolDeclarationLocation,
180Location originalDeclarationLocation,
189foreach (var implicitUsageConflict in implicitUsageConflicts)
213foreach (var implicitConflict in implicitConflicts)
233IDictionary<Location, Location> reverseMappedLocations,
325private static void AddConflictingSymbolLocations(IEnumerable<ISymbol> conflictingSymbols, MutableConflictResolution conflictResolution, IDictionary<Location, Location> reverseMappedLocations)
329foreach (var newLocation in newSymbol.Locations)
333if (reverseMappedLocations.TryGetValue(newLocation, out var oldLocation))
368var location = await GetSymbolLocationAsync(solution, symbol, cancellationToken).ConfigureAwait(false);
401private static async Task<Location?> GetSymbolLocationAsync(Solution solution, ISymbol symbol, CancellationToken cancellationToken)
Rename\IRenameRewriterLanguageService.cs (13)
52Task<ImmutableArray<Location>> ComputeDeclarationConflictsAsync(
59IDictionary<Location, Location> reverseMappedLocations,
70Task<ImmutableArray<Location>> ComputeImplicitReferenceConflictsAsync(
85ImmutableArray<Location> ComputePossibleImplicitUsageConflicts(
88Location originalDeclarationLocation,
126public abstract Task<ImmutableArray<Location>> ComputeDeclarationConflictsAsync(string replacementText, ISymbol renamedSymbol, ISymbol renameSymbol, IEnumerable<ISymbol> referencedSymbols, Solution baseSolution, Solution newSolution, IDictionary<Location, Location> reverseMappedLocations, CancellationToken cancellationToken);
127public abstract Task<ImmutableArray<Location>> ComputeImplicitReferenceConflictsAsync(ISymbol renameSymbol, ISymbol renamedSymbol, IEnumerable<ReferenceLocation> implicitReferenceLocations, CancellationToken cancellationToken);
128public abstract ImmutableArray<Location> ComputePossibleImplicitUsageConflicts(ISymbol renamedSymbol, SemanticModel semanticModel, Location originalDeclarationLocation, int newDeclarationLocationStartingPosition, CancellationToken cancellationToken);
135IEnumerable<ISymbol> properties, string newPropertyName, ArrayBuilder<Location> conflicts)