1 write to SymbolName
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
397SymbolName = symbolName.Trim();
18 references to SymbolName
Roslyn.Diagnostics.Analyzers (18)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (18)
97var numberOfWildcards = parts.SymbolName.Count(c => c == WildcardChar); 107(parts.SymbolName[^1] != WildcardChar || 108parts.SymbolName.Length == 1)) 118else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 119parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) || 120!parts.SymbolName.Contains(".", StringComparison.Ordinal) && !parts.SymbolName.Contains(":", StringComparison.Ordinal)) 143Debug.Assert(parts.SymbolName[^1] == WildcardChar); 144Debug.Assert(parts.SymbolName.Length >= 2); 146if (parts.SymbolName[1] != ':') 154associatedValues.Add(parts.SymbolName[0..^1], parts.AssociatedValue); 158var symbolKind = parts.SymbolName[0] switch 177associatedValues.Add(parts.SymbolName[2..^1], parts.AssociatedValue); 183if (!namesBuilder.ContainsKey(parts.SymbolName)) 185namesBuilder.Add(parts.SymbolName, parts.AssociatedValue); 191var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal)) 192? parts.SymbolName 193: optionalPrefix + parts.SymbolName;