* Associate this token with given variable * @param v Variable to be associated */
| 1230 | * @param v Variable to be associated |
| 1231 | */ |
| 1232 | void variable(const Variable *v) { |
| 1233 | mImpl->mVariable = v; |
| 1234 | if (v || mImpl->mVarId) |
| 1235 | tokType(eVariable); |
| 1236 | else if (mTokType == eVariable) |
| 1237 | tokType(eName); |
| 1238 | } |
| 1239 | |
| 1240 | /** |
| 1241 | * @return a pointer to the variable associated with this token. |