Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/contextbuilder.cpp
Context not available. | |||||
201 | return QualifiedIdentifier(ret); | 201 | return QualifiedIdentifier(ret); | ||
---|---|---|---|---|---|
202 | } | 202 | } | ||
203 | 203 | | |||
204 | IdentifierPair ContextBuilder::identifierPairForNode(IdentifierAst* id ) | 204 | IdentifierPair ContextBuilder::identifierPairForNode(IdentifierAst* id, bool isConstIdentifier) | ||
205 | { | 205 | { | ||
206 | if (!id) { | 206 | if (!id) { | ||
207 | return qMakePair(IndexedString(), QualifiedIdentifier()); | 207 | return qMakePair(IndexedString(), QualifiedIdentifier()); | ||
208 | } | 208 | } | ||
209 | const QString ret = stringForNode(id); | 209 | const QString ret = stringForNode(id); | ||
210 | 210 | | |||
211 | return qMakePair(IndexedString(ret), QualifiedIdentifier(ret.toLower())); | 211 | if ( isConstIdentifier ) { | ||
212 | return qMakePair(IndexedString(ret), QualifiedIdentifier(ret)); | ||||
213 | } else { | ||||
214 | return qMakePair(IndexedString(ret), QualifiedIdentifier(ret.toLower())); | ||||
215 | } | ||||
212 | } | 216 | } | ||
213 | 217 | | |||
214 | IdentifierPair ContextBuilder::identifierPairForNode(SemiReservedIdentifierAst* id ) | 218 | IdentifierPair ContextBuilder::identifierPairForNode(SemiReservedIdentifierAst* id ) | ||
Context not available. |