Example #1
0
 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);
 }