Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qmlcodeparser.h>
Public Member Functions | |
QmlCodeParser ()=default | |
~QmlCodeParser () override=default | |
void | initializeParser () override |
void | terminateParser () override |
Terminating a code parser is trivial. | |
QString | language () override |
Returns "QML". | |
QStringList | sourceFileNameFilter () override |
Returns a string list containing "*.qml". | |
void | parseSourceFile (const Location &location, const QString &filePath, CppCodeParser &) override |
Parses the source file at filePath and inserts the contents into the database. | |
void | extractPragmas (QString &script) |
Copy & paste from src/declarative/qml/qdeclarativescriptparser.cpp, then modified to return no values. | |
Public Member Functions inherited from CodeParser | |
CodeParser () | |
The constructor adds this code parser to the static list of code parsers. | |
virtual | ~CodeParser () |
The destructor removes this code parser from the static list of code parsers. | |
Additional Inherited Members | |
Static Public Member Functions inherited from CodeParser | |
static void | initialize () |
All the code parsers in the static list are initialized here, after the qdoc configuration variables have been set. | |
static void | terminate () |
All the code parsers in the static list are terminated here. | |
static CodeParser * | parserForLanguage (const QString &language) |
static CodeParser * | parserForSourceFile (const QString &filePath) |
static void | setLink (Node *node, Node::LinkType linkType, const QString &arg) |
static bool | isWorthWarningAbout (const Doc &doc) |
Test for whether a doc comment warrants warnings. | |
Static Public Attributes inherited from CodeParser | |
static const QSet< QString > | common_meta_commands |
Static Protected Member Functions inherited from CodeParser | |
static void | extractPageLinkAndDesc (QStringView arg, QString *link, QString *desc) |
Protected Attributes inherited from CodeParser | |
QDocDatabase * | m_qdb {} |
Definition at line 20 of file qmlcodeparser.h.
|
default |
|
overridedefault |
Copy & paste from src/declarative/qml/qdeclarativescriptparser.cpp, then modified to return no values.
Searches for ".pragma <value>" declarations within script. Currently supported pragmas are: library
Definition at line 102 of file qmlcodeparser.cpp.
References replaceWithSpace().
Referenced by parseSourceFile().
|
inlineoverridevirtual |
Implements CodeParser.
Definition at line 26 of file qmlcodeparser.h.
|
overridevirtual |
|
overridevirtual |
Parses the source file at filePath and inserts the contents into the database.
The location is used for error reporting.
If it can't open the file at filePath, it reports an error and returns without doing anything.
Implements CodeParser.
Definition at line 40 of file qmlcodeparser.cpp.
References extractPragmas(), and QmlDocVisitor::hasError().
|
overridevirtual |
Returns a string list containing "*.qml".
This is the only file type parsed by the QMLN parser.
Implements CodeParser.
Definition at line 28 of file qmlcodeparser.cpp.
|
inlineoverridevirtual |
Terminating a code parser is trivial.
Reimplemented from CodeParser.
Definition at line 27 of file qmlcodeparser.h.