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
QQmlJS::Dom::ScriptFormatter Class Referencefinal

#include <qqmldomreformatter_p.h>

+ Inheritance diagram for QQmlJS::Dom::ScriptFormatter:
+ Collaboration diagram for QQmlJS::Dom::ScriptFormatter:

Public Member Functions

 ScriptFormatter (OutWriter &lw, const std::shared_ptr< AstComments > &comments, const std::function< QStringView(SourceLocation)> &loc2Str, AST::Node *node)
 

Protected Member Functions

void out (const char *str)
 
void out (QStringView str)
 
void out (const SourceLocation &loc)
 
void newLine (quint32 count=1)
 
void accept (AST::Node *node)
 
void lnAcceptIndented (AST::Node *node)
 
bool acceptBlockOrIndented (AST::Node *ast, bool finishWithSpaceOrNewline=false)
 
bool preVisit (AST::Node *n) override
 
void postVisit (AST::Node *n) override
 
bool visit (AST::ThisExpression *ast) override
 
bool visit (AST::NullExpression *ast) override
 
bool visit (AST::TrueLiteral *ast) override
 
bool visit (AST::FalseLiteral *ast) override
 
bool visit (AST::IdentifierExpression *ast) override
 
bool visit (AST::StringLiteral *ast) override
 
bool visit (AST::NumericLiteral *ast) override
 
bool visit (AST::RegExpLiteral *ast) override
 
bool visit (AST::ArrayPattern *ast) override
 
bool visit (AST::ObjectPattern *ast) override
 
bool visit (AST::PatternElementList *ast) override
 
bool visit (AST::PatternPropertyList *ast) override
 
bool visit (AST::PatternProperty *property) override
 
bool visit (AST::NestedExpression *ast) override
 
bool visit (AST::IdentifierPropertyName *ast) override
 
bool visit (AST::StringLiteralPropertyName *ast) override
 
bool visit (AST::NumericLiteralPropertyName *ast) override
 
bool visit (AST::TemplateLiteral *ast) override
 
bool visit (AST::ArrayMemberExpression *ast) override
 
bool visit (AST::FieldMemberExpression *ast) override
 
bool visit (AST::NewMemberExpression *ast) override
 
bool visit (AST::NewExpression *ast) override
 
bool visit (AST::CallExpression *ast) override
 
bool visit (AST::PostIncrementExpression *ast) override
 
bool visit (AST::PostDecrementExpression *ast) override
 
bool visit (AST::PreIncrementExpression *ast) override
 
bool visit (AST::PreDecrementExpression *ast) override
 
bool visit (AST::DeleteExpression *ast) override
 
bool visit (AST::VoidExpression *ast) override
 
bool visit (AST::TypeOfExpression *ast) override
 
bool visit (AST::UnaryPlusExpression *ast) override
 
bool visit (AST::UnaryMinusExpression *ast) override
 
bool visit (AST::TildeExpression *ast) override
 
bool visit (AST::NotExpression *ast) override
 
bool visit (AST::BinaryExpression *ast) override
 
bool visit (AST::ConditionalExpression *ast) override
 
bool visit (AST::Block *ast) override
 
bool visit (AST::VariableStatement *ast) override
 
bool visit (AST::PatternElement *ast) override
 
bool visit (AST::EmptyStatement *ast) override
 
bool visit (AST::IfStatement *ast) override
 
bool visit (AST::DoWhileStatement *ast) override
 
bool visit (AST::WhileStatement *ast) override
 
bool visit (AST::ForStatement *ast) override
 
bool visit (AST::ForEachStatement *ast) override
 
bool visit (AST::ContinueStatement *ast) override
 
bool visit (AST::BreakStatement *ast) override
 
bool visit (AST::ReturnStatement *ast) override
 
bool visit (AST::YieldExpression *ast) override
 
bool visit (AST::ThrowStatement *ast) override
 
bool visit (AST::WithStatement *ast) override
 
bool visit (AST::SwitchStatement *ast) override
 
bool visit (AST::CaseBlock *ast) override
 
bool visit (AST::CaseClause *ast) override
 
bool visit (AST::DefaultClause *ast) override
 
bool visit (AST::LabelledStatement *ast) override
 
bool visit (AST::TryStatement *ast) override
 
bool visit (AST::Catch *ast) override
 
bool visit (AST::Finally *ast) override
 
bool visit (AST::FunctionDeclaration *ast) override
 
bool visit (AST::FunctionExpression *ast) override
 
bool visit (AST::Elision *ast) override
 
bool visit (AST::ArgumentList *ast) override
 
bool visit (AST::StatementList *ast) override
 
bool visit (AST::VariableDeclarationList *ast) override
 
bool visit (AST::CaseClauses *ast) override
 
bool visit (AST::FormalParameterList *ast) override
 
bool visit (AST::SuperLiteral *) override
 
bool visit (AST::ComputedPropertyName *) override
 
bool visit (AST::Expression *el) override
 
bool visit (AST::ExpressionStatement *el) override
 
bool visit (AST::ClassDeclaration *ast) override
 
bool visit (AST::ImportDeclaration *ast) override
 
bool visit (AST::ImportSpecifier *ast) override
 
bool visit (AST::NameSpaceImport *ast) override
 
bool visit (AST::ImportsList *ast) override
 
bool visit (AST::NamedImports *ast) override
 
bool visit (AST::ImportClause *ast) override
 
bool visit (AST::ExportDeclaration *ast) override
 
bool visit (AST::ExportClause *ast) override
 
bool visit (AST::ExportSpecifier *ast) override
 
bool visit (AST::ExportsList *ast) override
 
bool visit (AST::FromClause *ast) override
 
void endVisit (AST::ComputedPropertyName *) override
 
void endVisit (AST::ExportDeclaration *ast) override
 
void endVisit (AST::ExportClause *ast) override
 
void endVisit (AST::ImportDeclaration *ast) override
 
void endVisit (AST::NamedImports *ast) override
 
void throwRecursionDepthError () override
 
- Protected Member Functions inherited from QQmlJS::AST::JSVisitor
 JSVisitor ()=default
 
- Protected Member Functions inherited from QQmlJS::AST::BaseVisitor
 BaseVisitor (quint16 parentRecursionDepth=0)
 
virtual ~BaseVisitor ()
 
quint16 recursionDepth () const
 

Additional Inherited Members

- Protected Attributes inherited from QQmlJS::AST::BaseVisitor
quint16 m_recursionDepth = 0
 

Detailed Description

Definition at line 30 of file qqmldomreformatter_p.h.

Constructor & Destructor Documentation

◆ ScriptFormatter()

QQmlJS::Dom::ScriptFormatter::ScriptFormatter ( OutWriter & lw,
const std::shared_ptr< AstComments > & comments,
const std::function< QStringView(SourceLocation)> & loc2Str,
AST::Node * node )
inline

Definition at line 34 of file qqmldomreformatter_p.h.

References ScriptFormatter().

Referenced by ScriptFormatter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ accept()

void QQmlJS::Dom::ScriptFormatter::accept ( AST::Node * node)
inlineprotected

Definition at line 51 of file qqmldomreformatter_p.h.

◆ acceptBlockOrIndented()

bool QQmlJS::Dom::ScriptFormatter::acceptBlockOrIndented ( AST::Node * ast,
bool finishWithSpaceOrNewline = false )
protected

Definition at line 47 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter.

◆ endVisit() [1/5]

void QQmlJS::Dom::ScriptFormatter::endVisit ( AST::ComputedPropertyName * )
overrideprotected

Definition at line 1112 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ endVisit() [2/5]

void QQmlJS::Dom::ScriptFormatter::endVisit ( AST::ExportClause * ast)
overrideprotected

Definition at line 1151 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ endVisit() [3/5]

void QQmlJS::Dom::ScriptFormatter::endVisit ( AST::ExportDeclaration * ast)
overrideprotected

Definition at line 1117 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ endVisit() [4/5]

void QQmlJS::Dom::ScriptFormatter::endVisit ( AST::ImportDeclaration * ast)
overrideprotected

Definition at line 1167 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ endVisit() [5/5]

void QQmlJS::Dom::ScriptFormatter::endVisit ( AST::NamedImports * ast)
overrideprotected

Definition at line 1159 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ lnAcceptIndented()

void QQmlJS::Dom::ScriptFormatter::lnAcceptIndented ( AST::Node * node)
protected

Definition at line 39 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::decreaseIndent(), QQmlJS::Dom::OutWriter::ensureNewline(), and QQmlJS::Dom::OutWriter::increaseIndent().

+ Here is the call graph for this function:

◆ newLine()

void QQmlJS::Dom::ScriptFormatter::newLine ( quint32 count = 1)
inlineprotected

Definition at line 49 of file qqmldomreformatter_p.h.

References QQmlJS::Dom::OutWriter::ensureNewline().

+ Here is the call graph for this function:

◆ out() [1/3]

◆ out() [2/3]

void QQmlJS::Dom::ScriptFormatter::out ( const SourceLocation & loc)
inlineprotected

Definition at line 44 of file qqmldomreformatter_p.h.

◆ out() [3/3]

void QQmlJS::Dom::ScriptFormatter::out ( QStringView str)
inlineprotected

Definition at line 43 of file qqmldomreformatter_p.h.

◆ postVisit()

void QQmlJS::Dom::ScriptFormatter::postVisit ( AST::Node * n)
overrideprotectedvirtual

Reimplemented from QQmlJS::AST::JSVisitor.

Definition at line 31 of file qqmldomreformatter.cpp.

◆ preVisit()

bool QQmlJS::Dom::ScriptFormatter::preVisit ( AST::Node * n)
overrideprotectedvirtual

Reimplemented from QQmlJS::AST::JSVisitor.

Definition at line 23 of file qqmldomreformatter.cpp.

◆ throwRecursionDepthError()

void QQmlJS::Dom::ScriptFormatter::throwRecursionDepthError ( )
overrideprotectedvirtual

Implements QQmlJS::AST::BaseVisitor.

Definition at line 1172 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [1/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ArgumentList * ast)
overrideprotected

Definition at line 846 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [2/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ArrayMemberExpression * ast)
overrideprotected

Definition at line 304 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::decreaseIndent(), QQmlJS::Dom::OutWriter::increaseIndent(), and out().

+ Here is the call graph for this function:

◆ visit() [3/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ArrayPattern * ast)
overrideprotected

Definition at line 117 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::decreaseIndent(), QQmlJS::Dom::OutWriter::increaseIndent(), and out().

+ Here is the call graph for this function:

◆ visit() [4/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::BinaryExpression * ast)
overrideprotected

Definition at line 433 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [5/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::Block * ast)
overrideprotected

Definition at line 457 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [6/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::BreakStatement * ast)
overrideprotected

Definition at line 623 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [7/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::CallExpression * ast)
overrideprotected

Definition at line 343 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [8/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::CaseBlock * ast)
overrideprotected

Definition at line 696 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [9/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::CaseClause * ast)
overrideprotected

Definition at line 714 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [10/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::CaseClauses * ast)
overrideprotected

Definition at line 909 of file qqmldomreformatter.cpp.

◆ visit() [11/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::Catch * ast)
overrideprotected

Definition at line 758 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [12/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ClassDeclaration * ast)
overrideprotected

Definition at line 962 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::decreaseIndent(), QQmlJS::Dom::OutWriter::increaseIndent(), QQmlJS::Dom::OutWriter::lineWriter, QQmlJS::Dom::OutWriter::newline(), and out().

+ Here is the call graph for this function:

◆ visit() [13/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ComputedPropertyName * )
overrideprotected

Definition at line 941 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [14/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ConditionalExpression * ast)
overrideprotected

Definition at line 443 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [15/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ContinueStatement * ast)
overrideprotected

Definition at line 611 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [16/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::DefaultClause * ast)
overrideprotected

Definition at line 725 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [17/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::DeleteExpression * ast)
overrideprotected

Definition at line 381 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [18/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::DoWhileStatement * ast)
overrideprotected

Definition at line 542 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [19/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::Elision * ast)
overrideprotected

Definition at line 835 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [20/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::EmptyStatement * ast)
overrideprotected

Definition at line 514 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [21/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ExportClause * ast)
overrideprotected

Definition at line 1070 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [22/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ExportDeclaration * ast)
overrideprotected

Definition at line 1056 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [23/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ExportsList * ast)
overrideprotected

Definition at line 1091 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [24/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ExportSpecifier * ast)
overrideprotected

Definition at line 1079 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [25/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::Expression * el)
overrideprotected

Definition at line 946 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [26/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ExpressionStatement * el)
overrideprotected

Definition at line 954 of file qqmldomreformatter.cpp.

◆ visit() [27/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::FalseLiteral * ast)
overrideprotected

Definition at line 79 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [28/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::FieldMemberExpression * ast)
overrideprotected

Definition at line 316 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [29/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::Finally * ast)
overrideprotected

Definition at line 770 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [30/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ForEachStatement * ast)
overrideprotected

Definition at line 592 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [31/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::FormalParameterList * ast)
overrideprotected

Definition at line 919 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [32/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ForStatement * ast)
overrideprotected

Definition at line 565 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [33/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::FromClause * ast)
overrideprotected

Definition at line 1103 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [34/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::FunctionDeclaration * ast)
overrideprotected

Definition at line 778 of file qqmldomreformatter.cpp.

◆ visit() [35/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::FunctionExpression * ast)
overrideprotected

Definition at line 783 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::decreaseIndent(), QQmlJS::Dom::OutWriter::increaseIndent(), QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [36/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::IdentifierExpression * ast)
overrideprotected

Definition at line 85 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [37/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::IdentifierPropertyName * ast)
overrideprotected

Definition at line 270 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [38/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::IfStatement * ast)
overrideprotected

Definition at line 520 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [39/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ImportClause * ast)
overrideprotected

Definition at line 1044 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [40/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ImportDeclaration * ast)
overrideprotected

Definition at line 992 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [41/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ImportsList * ast)
overrideprotected

Definition at line 1024 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [42/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ImportSpecifier * ast)
overrideprotected

Definition at line 1002 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [43/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::LabelledStatement * ast)
overrideprotected

Definition at line 733 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [44/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::NamedImports * ast)
overrideprotected

Definition at line 1035 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [45/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::NameSpaceImport * ast)
overrideprotected

Definition at line 1014 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::ensureSpace(), and out().

+ Here is the call graph for this function:

◆ visit() [46/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::NestedExpression * ast)
overrideprotected

Definition at line 260 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::decreaseIndent(), QQmlJS::Dom::OutWriter::increaseIndent(), and out().

+ Here is the call graph for this function:

◆ visit() [47/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::NewExpression * ast)
overrideprotected

Definition at line 335 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [48/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::NewMemberExpression * ast)
overrideprotected

Definition at line 324 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [49/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::NotExpression * ast)
overrideprotected

Definition at line 426 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [50/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::NullExpression * ast)
overrideprotected

Definition at line 69 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [51/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::NumericLiteral * ast)
overrideprotected

Definition at line 106 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [52/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::NumericLiteralPropertyName * ast)
overrideprotected

Definition at line 280 of file qqmldomreformatter.cpp.

◆ visit() [53/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ObjectPattern * ast)
overrideprotected

Definition at line 136 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [54/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::PatternElement * ast)
overrideprotected

Definition at line 480 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [55/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::PatternElementList * ast)
overrideprotected

Definition at line 149 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [56/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::PatternProperty * property)
overrideprotected

Definition at line 188 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::decreaseIndent(), QQmlJS::Dom::OutWriter::increaseIndent(), QQmlJS::Dom::OutWriter::lineWriter, QQmlJS::Dom::OutWriter::newline(), and out().

+ Here is the call graph for this function:

◆ visit() [57/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::PatternPropertyList * ast)
overrideprotected

Definition at line 175 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [58/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::PostDecrementExpression * ast)
overrideprotected

Definition at line 360 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [59/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::PostIncrementExpression * ast)
overrideprotected

Definition at line 353 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [60/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::PreDecrementExpression * ast)
overrideprotected

Definition at line 374 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [61/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::PreIncrementExpression * ast)
overrideprotected

Definition at line 367 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [62/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::RegExpLiteral * ast)
overrideprotected

Definition at line 111 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [63/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ReturnStatement * ast)
overrideprotected

Definition at line 635 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [64/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::StatementList * ast)
overrideprotected

Definition at line 860 of file qqmldomreformatter.cpp.

◆ visit() [65/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::StringLiteral * ast)
overrideprotected

Definition at line 90 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::indentNextlines, and out().

+ Here is the call graph for this function:

◆ visit() [66/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::StringLiteralPropertyName * ast)
overrideprotected

Definition at line 275 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [67/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::SuperLiteral * )
overrideprotected

Definition at line 936 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [68/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::SwitchStatement * ast)
overrideprotected

Definition at line 684 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [69/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::TemplateLiteral * ast)
overrideprotected

Definition at line 286 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::indentNextlines, and out().

+ Here is the call graph for this function:

◆ visit() [70/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ThisExpression * ast)
overrideprotected

Definition at line 63 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [71/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::ThrowStatement * ast)
overrideprotected

Definition at line 661 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [72/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::TildeExpression * ast)
overrideprotected

Definition at line 419 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [73/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::TrueLiteral * ast)
overrideprotected

Definition at line 74 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [74/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::TryStatement * ast)
overrideprotected

Definition at line 742 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [75/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::TypeOfExpression * ast)
overrideprotected

Definition at line 397 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [76/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::UnaryMinusExpression * ast)
overrideprotected

Definition at line 412 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [77/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::UnaryPlusExpression * ast)
overrideprotected

Definition at line 405 of file qqmldomreformatter.cpp.

References out().

+ Here is the call graph for this function:

◆ visit() [78/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::VariableDeclarationList * ast)
overrideprotected

Definition at line 897 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [79/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::VariableStatement * ast)
overrideprotected

Definition at line 470 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [80/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::VoidExpression * ast)
overrideprotected

Definition at line 389 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [81/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::WhileStatement * ast)
overrideprotected

Definition at line 554 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [82/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::WithStatement * ast)
overrideprotected

Definition at line 673 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

◆ visit() [83/83]

bool QQmlJS::Dom::ScriptFormatter::visit ( AST::YieldExpression * ast)
overrideprotected

Definition at line 648 of file qqmldomreformatter.cpp.

References QQmlJS::Dom::OutWriter::lineWriter, and out().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: