提交 039550fe 编写于 作者: J Joey Robichaud

Make AnalyzerConfigOptions.Keys return an IEnumerable

上级 9ab06477
......@@ -26,7 +26,7 @@ public abstract class AnalyzerConfigOptions
/// <summary>
/// Get the keys of the defined options.
/// </summary>
public abstract ImmutableArray<string> Keys { get; }
public abstract IEnumerable<string> Keys { get; }
}
internal sealed class CompilerAnalyzerConfigOptions : AnalyzerConfigOptions
......@@ -42,6 +42,6 @@ public CompilerAnalyzerConfigOptions(ImmutableDictionary<string, string> propert
public override bool TryGetValue(string key, out string value) => _backing.TryGetValue(key, out value);
public override ImmutableArray<string> Keys => _backing.Keys.ToImmutableArray();
public override IEnumerable<string> Keys => _backing.Keys;
}
}
......@@ -21,7 +21,7 @@ Microsoft.CodeAnalysis.SarifVersion.Latest = 2147483647 -> Microsoft.CodeAnalysi
Microsoft.CodeAnalysis.SarifVersion.Sarif1 = 1 -> Microsoft.CodeAnalysis.SarifVersion
Microsoft.CodeAnalysis.SarifVersion.Sarif2 = 2 -> Microsoft.CodeAnalysis.SarifVersion
Microsoft.CodeAnalysis.SarifVersionFacts
abstract Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptions.Keys.get -> System.Collections.Immutable.ImmutableArray<string>
abstract Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptions.Keys.get -> System.Collections.Generic.IEnumerable<string>
Microsoft.CodeAnalysis.SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier = 256 -> Microsoft.CodeAnalysis.SymbolDisplayMiscellaneousOptions
static Microsoft.CodeAnalysis.SarifVersionFacts.TryParse(string version, out Microsoft.CodeAnalysis.SarifVersion result) -> bool
Microsoft.CodeAnalysis.IMethodSymbol.IsConditional.get -> bool
......
......@@ -318,7 +318,7 @@ public WorkspaceAnalyzerConfigOptions(AnalyzerConfigOptionsResult analyzerConfig
public override bool TryGetValue(string key, out string value) => _backing.TryGetValue(key, out value);
public override ImmutableArray<string> Keys => _backing.Keys.ToImmutableArray();
public override IEnumerable<string> Keys => _backing.Keys;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册