private void StoreRemovableVariableDeclarations(BaseFieldDeclarationSyntax node) { foreach (var variable in node.Declaration.Variables) { var symbol = GetDeclaredSymbol(variable); if (IsRemovableMember(symbol)) { PrivateSymbols.Add(symbol); FieldLikeSymbols.Add(symbol, variable); } } }
private void ConditionalStore <TSymbol>(TSymbol symbol, Func <TSymbol, bool> condition) where TSymbol : ISymbol { if (condition(symbol)) { if (symbol.GetEffectiveAccessibility() == Accessibility.Private) { PrivateSymbols.Add(symbol); } else { InternalSymbols.Add(symbol); } } }