Changeset View
Changeset View
Standalone View
Standalone View
plugins/qmljs/duchain/helper.cpp
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Line(s) | 136 | { | |||
---|---|---|---|---|---|
142 | 142 | | |||
143 | if (!statement) { | 143 | if (!statement) { | ||
144 | return res; | 144 | return res; | ||
145 | } | 145 | } | ||
146 | 146 | | |||
147 | // The expression must be an identifier or a string literal | 147 | // The expression must be an identifier or a string literal | ||
148 | res.value = getNodeValue(statement->expression); | 148 | res.value = getNodeValue(statement->expression); | ||
149 | 149 | | |||
150 | if (res.value.isNull()) { | 150 | if (res.value.isEmpty()) { | ||
151 | return res; | 151 | return res; | ||
152 | } | 152 | } | ||
153 | 153 | | |||
154 | res.location = statement->expression->firstSourceLocation(); | 154 | res.location = statement->expression->firstSourceLocation(); | ||
155 | 155 | | |||
156 | return res; | 156 | return res; | ||
157 | } | 157 | } | ||
158 | 158 | | |||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |