Changeset View
Changeset View
Standalone View
Standalone View
duchain/abstractexpressionvisitor.h
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | 108 | protected: | |||
---|---|---|---|---|---|
147 | } | 147 | } | ||
148 | 148 | | |||
149 | virtual void usingDeclaration( T* node, TokenType start_token, TokenType end_token, const KDevelop::DeclarationPointer& decl ) { | 149 | virtual void usingDeclaration( T* node, TokenType start_token, TokenType end_token, const KDevelop::DeclarationPointer& decl ) { | ||
150 | Q_UNUSED(node) Q_UNUSED(start_token) Q_UNUSED(end_token) Q_UNUSED(decl) | 150 | Q_UNUSED(node) Q_UNUSED(start_token) Q_UNUSED(end_token) Q_UNUSED(decl) | ||
151 | } | 151 | } | ||
152 | 152 | | |||
153 | /** Called when there is a problem, with a string for that problem. | 153 | /** Called when there is a problem, with a string for that problem. | ||
154 | * The default-implementation dumps all relevant information to | 154 | * The default-implementation dumps all relevant information to | ||
155 | * kDebug. | 155 | * qDebug. | ||
156 | * @param node the node the problem is about | 156 | * @param node the node the problem is about | ||
157 | * @param str a string that describes the problem | 157 | * @param str a string that describes the problem | ||
158 | */ | 158 | */ | ||
159 | virtual void problem( T* node, const QString& str ) | 159 | virtual void problem( T* node, const QString& str ) | ||
160 | { | 160 | { | ||
161 | #ifdef DUMP_PROBLEMS | 161 | #ifdef DUMP_PROBLEMS | ||
162 | kDebug() << "Problem:" << str; | 162 | qDebug() << "Problem:" << str; | ||
163 | #endif | 163 | #endif | ||
164 | } | 164 | } | ||
165 | 165 | | |||
166 | void flushUse() { | 166 | void flushUse() { | ||
167 | if( m_currentUse.isValid ) | 167 | if( m_currentUse.isValid ) | ||
168 | usingDeclaration( m_currentUse.node, m_currentUse.start_token, m_currentUse.end_token, m_currentUse.declaration ); | 168 | usingDeclaration( m_currentUse.node, m_currentUse.start_token, m_currentUse.end_token, m_currentUse.declaration ); | ||
169 | m_currentUse.isValid = false; | 169 | m_currentUse.isValid = false; | ||
170 | } | 170 | } | ||
Show All 31 Lines |