Commit 430c78f3 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Renamed CollectTypes.

parent da5d6d7d
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
using QThread::msleep; using QThread::msleep;
}; };
class CollectTypes: protected SymbolVisitor class CollectSymbols: protected SymbolVisitor
{ {
Document::Ptr _doc; Document::Ptr _doc;
Snapshot _snapshot; Snapshot _snapshot;
...@@ -68,7 +68,7 @@ class CollectTypes: protected SymbolVisitor ...@@ -68,7 +68,7 @@ class CollectTypes: protected SymbolVisitor
bool _mainDocument; bool _mainDocument;
public: public:
CollectTypes(Document::Ptr doc, const Snapshot &snapshot) CollectSymbols(Document::Ptr doc, const Snapshot &snapshot)
: _doc(doc), _snapshot(snapshot), _mainDocument(false) : _doc(doc), _snapshot(snapshot), _mainDocument(false)
{ {
QSet<Namespace *> processed; QSet<Namespace *> processed;
...@@ -302,7 +302,7 @@ CheckSymbols::Future CheckSymbols::go(Document::Ptr doc, const LookupContext &co ...@@ -302,7 +302,7 @@ CheckSymbols::Future CheckSymbols::go(Document::Ptr doc, const LookupContext &co
CheckSymbols::CheckSymbols(Document::Ptr doc, const LookupContext &context) CheckSymbols::CheckSymbols(Document::Ptr doc, const LookupContext &context)
: ASTVisitor(doc->translationUnit()), _doc(doc), _context(context) : ASTVisitor(doc->translationUnit()), _doc(doc), _context(context)
{ {
CollectTypes collectTypes(doc, context.snapshot()); CollectSymbols collectTypes(doc, context.snapshot());
_fileName = doc->fileName(); _fileName = doc->fileName();
_potentialTypes = collectTypes.types(); _potentialTypes = collectTypes.types();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment