private void ParseClass(ClassDeclarationSyntax cls, NamespaceDeclarationSyntax ns, List <ClassStructure> parsedClasses) { var parsedClass = new ClassStructure(cls, ns, _fileStructure.References, _fileStructure.Usings, _fileStructure.Filename, _fileStructure.Path); parsedClass.ParseClass(); lock (_lock) parsedClasses.Add(parsedClass); }