public static EnumValuesPrefixTrigger GetEnumValuesPrefixTriggerOption( this AnalyzerOptions options, DiagnosticDescriptor rule, ISymbol symbol, Compilation compilation, EnumValuesPrefixTrigger defaultValue, CancellationToken cancellationToken) => options.GetEnumValuesPrefixTriggerOption(rule, symbol.Locations[0].SourceTree, compilation, defaultValue, cancellationToken);
public static EnumValuesPrefixTrigger GetEnumValuesPrefixTriggerOption( this AnalyzerOptions options, DiagnosticDescriptor rule, ISymbol symbol, Compilation compilation, EnumValuesPrefixTrigger defaultValue, CancellationToken cancellationToken) => TryGetSyntaxTreeForOption(symbol, out var tree) ? options.GetEnumValuesPrefixTriggerOption(rule, tree, compilation, defaultValue, cancellationToken) : defaultValue;