Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 460 of file qqmllscompletion.cpp.
References QQmlJSScope::parentScope(), and QQmlSA::QMLScope.
|
static |
Collect the current set of labels that some DomItem can jump to.
Definition at line 1499 of file qqmllscompletion.cpp.
|
static |
Definition at line 573 of file qqmllscompletion.cpp.
References QQmlJSMetaProperty::isValid(), QQmlJSScope::property(), and property.
Referenced by checkValidDateTime(), QDateTimePrivate::create(), QQuickWindowPrivate::ensureCustomRenderTarget(), QV4::Promise::ReactionHandler::executeResolveThenable(), getBinaryRPaths(), QDateTimePrivate::localNameAtMillis(), QDateTimePrivate::localStateAtMillis(), QLocalTime::localTimeAbbbreviationAt(), QLocalTime::mapLocalTime(), massageAdjustedDateTime(), QV4::PromiseCtor::method_all(), QV4::PromiseCtor::method_race(), QV4::PromiseCtor::method_resolve(), QQuickStyleSpec::name(), QDateTime::offsetFromUtc(), QQuickStyleSpec::path(), refreshZonedDateTime(), resolveTypesInternal(), reviseTimeZone(), QDateTime::setDate(), QQuickStyleSpec::setStyle(), QDateTime::setTime(), QDateTime::setTimeZone(), stateAtMillis(), QTimeZonePrivate::stateAtZoneTime(), QDateTime::toMSecsSinceEpoch(), QV4::ResolveElementWrapper::virtualCall(), and QV4::PromiseCtor::virtualCallAsConstructor().
|
static |
Definition at line 262 of file qqmllscompletion.cpp.
References QQmlJSScope::attachedType(), QQmlJSScope::isCreatable(), QDeferredSharedPointer< T >::isNull(), QQmlJSScope::isReferenceType(), and QQmlJSScope::isSingleton().
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 620 of file qqmllscompletion.cpp.