1 instantiation of ApiLine
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
DeclarePublicApiAnalyzer.cs (1)
183var apiLine = new ApiLine(text, line.Span, additionalFileInfo);
24 references to ApiLine
Microsoft.CodeAnalysis.PublicApiAnalyzers (24)
DeclarePublicApiAnalyzer.cs (8)
159var apiBuilder = ArrayBuilder<ApiLine>.GetInstance(); 183var apiLine = new ApiLine(text, line.Span, additionalFileInfo); 254var apiBuilder = ArrayBuilder<ApiLine>.GetInstance(); 401var publicApiMap = PooledDictionary<string, ApiLine>.GetInstance(StringComparer.Ordinal); 409private static void ValidateApiList(ImmutableDictionary<AdditionalText, SourceText> additionalFiles, Dictionary<string, ApiLine> publicApiMap, ImmutableArray<ApiLine> apiList, bool isPublic, List<Diagnostic> errors) 411foreach (ApiLine cur in apiList) 414if (publicApiMap.TryGetValue(textWithoutOblivious, out ApiLine existingLine))
DeclarePublicApiAnalyzer.Impl.cs (16)
59private readonly record struct RemovedApiLine(string Text, ApiLine ApiLine); 64private sealed record ApiData(ImmutableArray<ApiLine> ApiList, ImmutableArray<RemovedApiLine> RemovedApiList, int NullableLineNumber) 66public static readonly ApiData Empty = new(ImmutableArray<ApiLine>.Empty, ImmutableArray<RemovedApiLine>.Empty, NullableLineNumber: -1); 86private readonly Lazy<IReadOnlyDictionary<string, ApiLine>> _apiMap; 96_apiMap = new Lazy<IReadOnlyDictionary<string, ApiLine>>(() => CreateApiMap(shippedData, unshippedData)); 100static IReadOnlyDictionary<string, ApiLine> CreateApiMap(ApiData shippedData, ApiData unshippedData) 104var publicApiMap = new Dictionary<string, ApiLine>(shippedData.ApiList.Length + unshippedData.ApiList.Length, StringComparer.Ordinal); 105foreach (ApiLine cur in shippedData.ApiList) 110foreach (ApiLine cur in unshippedData.ApiList) 238IReadOnlyDictionary<string, ApiLine> apiMap = _apiMap.Value; 250ApiLine foundApiLine; 377var isOverloadUnshipped = !lookupPublicApi(overloadPublicApiName, out ApiLine overloadPublicApiLine) || 451bool lookupPublicApi(ApiName overloadPublicApiName, out ApiLine overloadPublicApiLine) 519foreach (var apiLine in _unshippedData.ApiList) 752IReadOnlyDictionary<string, ApiLine> apiMap = _apiMap.Value; 753foreach (KeyValuePair<string, ApiLine> pair in apiMap)