Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
Syntax Namespace Reference

Typedefs

using Token = QQmlJSGrammar::VariousConstants
using Word = std::variant<Token, QLatin1StringView>
using Phrase = QList<Word>

Functions

auto stringView (const Word &word) -> QLatin1StringView
auto toString (const Phrase &phrase) -> QString
auto operator+ (const Word &word, const Phrase &phrase) -> Phrase
auto operator+ (const Word &word1, const Word &word2) -> Phrase
auto objectDeclaration (Phrase &&objectMember, QLatin1StringView objName) -> Phrase
constexpr auto spellFor (Token token) -> QLatin1StringView

Typedef Documentation

◆ Phrase

Definition at line 163 of file qmlutils_p.h.

◆ Token

using Syntax::Token = QQmlJSGrammar::VariousConstants

Definition at line 127 of file qmlutils_p.h.

◆ Word

using Syntax::Word = std::variant<Token, QLatin1StringView>

Definition at line 160 of file qmlutils_p.h.

Function Documentation

◆ objectDeclaration()

auto Syntax::objectDeclaration ( Phrase && objectMember = {},
QLatin1StringView objName = QLatin1StringView("QtObject") ) -> Phrase

Definition at line 168 of file qmlutils.cpp.

◆ operator+() [1/2]

auto Syntax::operator+ ( const Word & word,
const Phrase & phrase ) -> Phrase

Definition at line 158 of file qmlutils.cpp.

◆ operator+() [2/2]

auto Syntax::operator+ ( const Word & word1,
const Word & word2 ) -> Phrase

Definition at line 163 of file qmlutils.cpp.

◆ spellFor()

auto Syntax::spellFor ( Token token) -> QLatin1StringView
constexpr

Definition at line 129 of file qmlutils_p.h.

◆ stringView()

auto Syntax::stringView ( const Word & word) -> QLatin1StringView

Definition at line 142 of file qmlutils.cpp.

◆ toString()

auto Syntax::toString ( const Phrase & phrase) -> QString

Definition at line 148 of file qmlutils.cpp.