public string TryMakeVerb_finds_proper_verb_(string name) { NamesFinder.TryMakeVerb(name, out var result); return(result); }
internal static string FindBetterName(ISymbol symbol) => NamesFinder.TryMakeVerb(symbol.Name, out var betterName) ? betterName : symbol.Name;
protected override IEnumerable <Diagnostic> AnalyzeName(IMethodSymbol symbol) => NamesFinder.TryMakeVerb(symbol.Name, out var betterName) ? new[] { Issue(symbol, betterName) } : Enumerable.Empty <Diagnostic>();
internal static string FindBetterName(IMethodSymbol symbol) { var name = symbol.Name.Without(Phrase); return(NamesFinder.TryMakeVerb(name, out var result) ? result : name); }