80 int line = reader.attributes().value(
QLatin1String(
"line")).toString().toInt();
92 formalParameters.
append(reader.text().toString());
101 for (
int i = 0; i < formalParameters.
size(); ++i) {
104 signature.
append(formalParameters.
at(i));
107 functionsInfo.
insert(signature, line);
108 }
else if (reader.name() ==
QLatin1String(
"expression-statement")) {
116 if (reader.name() ==
QLatin1String(
"field-member-expression")) {
118 if (reader.name() ==
QLatin1String(
"field-member-expression")) {
122 first = reader.text().toString();
128 second = reader.text().toString();
133 first = reader.text().toString();
140 second = reader.text().toString();
142 third = reader.text().toString();
160 functionsInfo.
insert(signature, line);
173 return Result(functionsInfo, lineNumbers.
toSet());
QSet< T > toSet() const
Returns a QSet object with the data contained in this QList.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
static void tokenUntil(QXmlStreamReader &reader, QXmlStreamReader::TokenType target, QList< int > &lineNumbers)
void append(const T &t)
Inserts value at the end of the list.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
QString & append(QChar c)
iterator insert(const Key &key, const T &value)
Inserts a new item with the key key and a value of value.
int size() const
Returns the number of items in the list.
The QXmlStreamReader class provides a fast parser for reading well-formed XML via a simple streaming ...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.