4#ifndef QQMLDOMSCANNER_P_H
5#define QQMLDOMSCANNER_P_H
23#include <QtQml/private/qqmljslexer_p.h>
24#include <QtQml/private/qqmljsgrammar_p.h>
47 void dump(
const Sink &s, QStringView line = QStringView())
const;
50 return dumperToString([line,
this](
const Sink &s) {
this->dump(s, line); });
59 return int(t1.lexKind) -
int(t2.lexKind);
bool operator==(const State &other) const
static bool isBracelessState(StateType type)
static FormatTextStatus initialStatus(int baseIndent=0)
void pushState(StateType type, quint16 savedIndentDepth)
State state(int belowTop=0) const
Scanner::State lexerState
static bool isExpressionEndState(StateType type)
QList< Token > operator()(QStringView text, const State &startState)
QString toString(QStringView line=QStringView()) const
void dump(const Sink &s, QStringView line=QStringView()) const
static bool lexKindIsIdentifier(int kind)
static bool lexKindIsQmlReserved(int kind)
static bool lexKindIsComment(int kind)
static bool lexKindIsJSKeyword(int kind)
Token(int o, int l, int lexKind)
static bool lexKindIsStringType(int kind)
static int compare(const Token &t1, const Token &t2)
static bool lexKindIsInvalid(int kind)
FormatPartialStatus formatCodeLine(QStringView line, const FormatOptions &options, const FormatTextStatus &initialStatus)
int operator==(const Token &t1, const Token &t2)
int indentForLineStartingWithToken(const FormatTextStatus &oldStatus, const FormatOptions &, int tokenKind)
FormatTextStatus::State State
int operator!=(const Token &t1, const Token &t2)
Q_STATIC_LOGGING_CATEGORY(lcAccessibilityCore, "qt.accessibility.core")
bool isMultilineComment() const