![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qqmllscompletion_p.h"
Go to the source code of this file.
Functions | |
static bool | testScopeSymbol (const QQmlJSScope::ConstPtr &scope, LocalSymbolsTypes options, CompletionItemKind kind) |
template<typename F> | |
void | collectFromAllJavaScriptParents (const F &&f, const QQmlJSScope::ConstPtr &scope) |
static const QQmlJSScope * | resolve (const QQmlJSScope *current, const QStringList &names) |
static void | collectLabels (const DomItem &context, QQmlLSCompletion::BackInsertIterator result) |
Variables | |
static const QMap< QString, QList< QString > > | valuesForPragmas |
Mapping from pragma names to allowed pragma values. |
void collectFromAllJavaScriptParents | ( | const F && | f, |
const QQmlJSScope::ConstPtr & | scope ) |
Calls F on all JavaScript-parents of scope. For example, you can use this method to collect all the JavaScript Identifiers from following code:
Definition at line 466 of file qqmllscompletion.cpp.
|
static |
Collect the current set of labels that some DomItem can jump to.
Definition at line 1570 of file qqmllscompletion.cpp.
|
static |
Definition at line 631 of file qqmllscompletion.cpp.
|
static |
Definition at line 268 of file qqmllscompletion.cpp.
Mapping from pragma names to allowed pragma values.
This mapping of pragma names to pragma values is not complete. In fact, it only contains the pragma names and values that one should see autocompletion for. Some pragmas like FunctionSignatureBehavior or Strict or the Reference/Value of ValueTypeBehavior, for example, should currently not be proposed as completion items by qmlls.
An empty QList-value in the QMap means that the pragma does not accept pragma values.
Definition at line 678 of file qqmllscompletion.cpp.