2 instantiations of SymbolNamesWithValueOption
Roslyn.Diagnostics.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
28public static readonly SymbolNamesWithValueOption<TValue> Empty = new(); 136return new SymbolNamesWithValueOption<TValue>(namesBuilder.ToImmutableDictionaryAndFree(),
52 references to SymbolNamesWithValueOption
Roslyn.Diagnostics.Analyzers (52)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (45)
237public static SymbolNamesWithValueOption<Unit> GetNullCheckValidationMethodsOption( 242=> options.GetSymbolNamesWithValueOption<Unit>(EditorConfigOptionNames.NullCheckValidationMethods, rule, tree, compilation, static name => new SymbolNamesWithValueOption<Unit>.NameParts(name, Unit.Default), namePrefix: "M:"); 244public static SymbolNamesWithValueOption<Unit> GetAdditionalStringFormattingMethodsOption( 249=> options.GetSymbolNamesWithValueOption<Unit>(EditorConfigOptionNames.AdditionalStringFormattingMethods, rule, tree, compilation, static name => new SymbolNamesWithValueOption<Unit>.NameParts(name, Unit.Default), namePrefix: "M:"); 265var excludedSymbols = GetExcludedSymbolNamesWithValueOption(options, rule, containingContextSymbol, compilation); 266var excludedTypeNamesWithDerivedTypes = GetExcludedTypeNamesWithDerivedTypesOption(options, rule, containingContextSymbol, compilation); 295static SymbolNamesWithValueOption<Unit> GetExcludedSymbolNamesWithValueOption( 301? options.GetSymbolNamesWithValueOption<Unit>(EditorConfigOptionNames.ExcludedSymbolNames, rule, tree, compilation, static name => new SymbolNamesWithValueOption<Unit>.NameParts(name, Unit.Default)) 302: SymbolNamesWithValueOption<Unit>.Empty; 304static SymbolNamesWithValueOption<Unit> GetExcludedTypeNamesWithDerivedTypesOption( 310? options.GetSymbolNamesWithValueOption<Unit>(EditorConfigOptionNames.ExcludedTypeNamesWithDerivedTypes, rule, tree, compilation, static name => new SymbolNamesWithValueOption<Unit>.NameParts(name, Unit.Default), namePrefix: "T:") 311: SymbolNamesWithValueOption<Unit>.Empty; 314public static SymbolNamesWithValueOption<Unit> GetDisallowedSymbolNamesWithValueOption( 321private static SymbolNamesWithValueOption<Unit> GetDisallowedSymbolNamesWithValueOption( 326=> options.GetSymbolNamesWithValueOption<Unit>(EditorConfigOptionNames.DisallowedSymbolNames, rule, tree, compilation, static name => new SymbolNamesWithValueOption<Unit>.NameParts(name, Unit.Default)); 328public static SymbolNamesWithValueOption<string?> GetAdditionalRequiredSuffixesOption( 335private static SymbolNamesWithValueOption<string?> GetAdditionalRequiredSuffixesOption( 343static SymbolNamesWithValueOption<string?>.NameParts GetParts(string name) 350return new SymbolNamesWithValueOption<string?>.NameParts(name, null); 365return new SymbolNamesWithValueOption<string?>.NameParts(split[0], trimmedSuffix); 370return new SymbolNamesWithValueOption<string?>.NameParts(split[0], string.Empty); 373return new SymbolNamesWithValueOption<string?>.NameParts(split[0], trimmedSuffix); 377public static SymbolNamesWithValueOption<INamedTypeSymbol?> GetAdditionalRequiredGenericInterfaces( 384private static SymbolNamesWithValueOption<INamedTypeSymbol?> GetAdditionalRequiredGenericInterfaces( 392static SymbolNamesWithValueOption<INamedTypeSymbol?>.NameParts GetParts(string name, Compilation compilation) 399return new SymbolNamesWithValueOption<INamedTypeSymbol?>.NameParts(name, null); 416return new SymbolNamesWithValueOption<INamedTypeSymbol?>.NameParts(split[0], null); 419return new SymbolNamesWithValueOption<INamedTypeSymbol?>.NameParts(split[0], namedType); 423public static SymbolNamesWithValueOption<Unit> GetInheritanceExcludedSymbolNamesOption( 429=> options.GetSymbolNamesWithValueOption<Unit>(EditorConfigOptionNames.AdditionalInheritanceExcludedSymbolNames, rule, tree, compilation, static name => new SymbolNamesWithValueOption<Unit>.NameParts(name, Unit.Default), optionForcedValue: defaultForcedValue); 431public static SymbolNamesWithValueOption<Unit> GetAdditionalUseResultsMethodsOption( 436=> options.GetSymbolNamesWithValueOption<Unit>(EditorConfigOptionNames.AdditionalUseResultsMethods, rule, tree, compilation, static name => new SymbolNamesWithValueOption<Unit>.NameParts(name, Unit.Default), namePrefix: "M:"); 438public static SymbolNamesWithValueOption<Unit> GetEnumerationMethodsOption( 443=> options.GetSymbolNamesWithValueOption<Unit>(EditorConfigOptionNames.EnumerationMethods, rule, tree, compilation, static name => new SymbolNamesWithValueOption<Unit>.NameParts(name, Unit.Default), namePrefix: "M:"); 445public static SymbolNamesWithValueOption<Unit> GetLinqChainMethodsOption( 450=> options.GetSymbolNamesWithValueOption<Unit>(EditorConfigOptionNames.LinqChainMethods, rule, tree, compilation, static name => new SymbolNamesWithValueOption<Unit>.NameParts(name, Unit.Default), namePrefix: "M:"); 452private static SymbolNamesWithValueOption<TValue> GetSymbolNamesWithValueOption<TValue>( 458Func<string, SymbolNamesWithValueOption<TValue>.NameParts> getTypeAndSuffixFunc, 473static bool TryParse(string s, (Compilation compilation, Func<string, SymbolNamesWithValueOption<TValue>.NameParts> getTypeAndSuffixFunc, string? namePrefix, string? optionForcedValue) arg, out SymbolNamesWithValueOption<TValue> option) 485option = SymbolNamesWithValueOption<TValue>.Empty; 490option = SymbolNamesWithValueOption<TValue>.Create(names, arg.compilation, arg.namePrefix, arg.getTypeAndSuffixFunc); 494SymbolNamesWithValueOption<TValue> GetDefaultValue() 512return TryParse(optionValue, (compilation, getTypeAndSuffixFunc, namePrefix, optionForcedValue), out var option) 514: SymbolNamesWithValueOption<TValue>.Empty;
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (7)
23: IEquatable<SymbolNamesWithValueOption<TValue>?> 28public static readonly SymbolNamesWithValueOption<TValue> Empty = new(); 80public static SymbolNamesWithValueOption<TValue> Create(ImmutableArray<string> symbolNames, Compilation compilation, string? optionalPrefix, 252public override bool Equals(object? obj) => Equals(obj as SymbolNamesWithValueOption<TValue>); 254public bool Equals(SymbolNamesWithValueOption<TValue>? other) 365private readonly SymbolNamesWithValueOption<TValue> _symbolNamesWithValueOption; 367internal TestAccessor(SymbolNamesWithValueOption<TValue> symbolNamesWithValueOption)