public HalfSynchronizedClassRepresentation(SyntaxNode classDeclaration) { Properties = classDeclaration.DescendantNodes().OfType <PropertyDeclarationSyntax>().ToList(); Methods = classDeclaration.DescendantNodes().OfType <MethodDeclarationSyntax>().ToList(); SynchronizedProperties = SyntaxNodeFilter.GetSynchronizedProperties(Properties); SynchronizedMethods = SyntaxNodeFilter.GetSynchronizedMethods(Methods); UnsynchronizedProperties = SyntaxNodeFilter.GetUnsynchronizedProperties(Properties); UnsynchronizedMethods = SyntaxNodeFilter.GetUnsynchronizedMethods(Methods); UnsynchronizedPropertiesInSynchronizedMethods = SyntaxNodeFilter.GetPropertiesInSynchronizedMethods(SynchronizedMethods, UnsynchronizedProperties); }
public IEnumerable <string> GetIdentifiersInLockStatements() { return(SyntaxNodeFilter.GetIdentifiersInLockStatements(SynchronizedProperties) .Concat(SyntaxNodeFilter.GetIdentifiersInLockStatements(SynchronizedMethods))); }