![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtQmlCompiler More...
#include <qqmlsa.h>
Collaboration diagram for QQmlSA::FixSuggestion:Public Member Functions | |
| FixSuggestion (const QString &fixDescription, const QQmlSA::SourceLocation &location, const QString &replacement=QString()) | |
| FixSuggestion (const FixSuggestion &) | |
| FixSuggestion (FixSuggestion &&) noexcept | |
| FixSuggestion & | operator= (const FixSuggestion &) |
| FixSuggestion & | operator= (FixSuggestion &&) noexcept |
| ~FixSuggestion () | |
| QString | fixDescription () const |
| Returns the description of the fix. | |
| QQmlSA::SourceLocation | location () const |
| Returns the location where the fix would be applied. | |
| QString | replacement () const |
| Returns the fix that will replace the problematic source code. | |
| void | setFileName (const QString &) |
| Sets fileName as the name of the file where this fix suggestion applies. | |
| QString | fileName () const |
| Returns the name of the file where this fix suggestion applies. | |
| void | setHint (const QString &) |
| Sets hint as the hint for this fix suggestion. | |
| QString | hint () const |
| Returns the hint for this fix suggestion. | |
| void | setAutoApplicable (bool autoApplicable=true) |
| Sets uses autoApplicable to set whtether this suggested fix can be applied automatically. | |
| bool | isAutoApplicable () const |
| Returns whether this suggested fix can be applied automatically. | |
Friends | |
| bool | operator== (const FixSuggestion &lhs, const FixSuggestion &rhs) |
| bool | operator!= (const FixSuggestion &lhs, const FixSuggestion &rhs) |
\inmodule QtQmlCompiler
Represents a suggested fix for an issue in the source code.
| QQmlSA::FixSuggestion::FixSuggestion | ( | const QString & | fixDescription, |
| const QQmlSA::SourceLocation & | location, | ||
| const QString & | replacement = QString() |
||
| ) |
Definition at line 1561 of file qqmlsa.cpp.
| QQmlSA::FixSuggestion::FixSuggestion | ( | const FixSuggestion & | other | ) |
Definition at line 1567 of file qqmlsa.cpp.
|
noexcept |
Definition at line 1572 of file qqmlsa.cpp.
References other().
Here is the call graph for this function:
|
default |
| QString QQmlSA::FixSuggestion::fileName | ( | ) | const |
Returns the name of the file where this fix suggestion applies.
Definition at line 1633 of file qqmlsa.cpp.
References QQmlJSFixSuggestion::filename(), and QQmlSA::FixSuggestionPrivate::fixSuggestion().
Referenced by setFileName().
Here is the call graph for this function:
Here is the caller graph for this function:| QString QQmlSA::FixSuggestion::fixDescription | ( | ) | const |
Returns the description of the fix.
Definition at line 1600 of file qqmlsa.cpp.
References QQmlJSFixSuggestion::fixDescription(), and QQmlSA::FixSuggestionPrivate::fixSuggestion().
Here is the call graph for this function:| QString QQmlSA::FixSuggestion::hint | ( | ) | const |
Returns the hint for this fix suggestion.
Definition at line 1649 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion(), and QQmlJSFixSuggestion::hint().
Referenced by setHint().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QQmlSA::FixSuggestion::isAutoApplicable | ( | ) | const |
Returns whether this suggested fix can be applied automatically.
Definition at line 1665 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion(), and QQmlJSFixSuggestion::isAutoApplicable().
Here is the call graph for this function:| QQmlSA::SourceLocation QQmlSA::FixSuggestion::location | ( | ) | const |
Returns the location where the fix would be applied.
Definition at line 1608 of file qqmlsa.cpp.
References QQmlSA::SourceLocationPrivate::createQQmlSASourceLocation(), QQmlSA::FixSuggestionPrivate::fixSuggestion(), and QQmlJSFixSuggestion::location().
Here is the call graph for this function:| FixSuggestion & QQmlSA::FixSuggestion::operator= | ( | const FixSuggestion & | other | ) |
Definition at line 1577 of file qqmlsa.cpp.
References other().
Here is the call graph for this function:
|
noexcept |
Definition at line 1586 of file qqmlsa.cpp.
References other().
Here is the call graph for this function:| QString QQmlSA::FixSuggestion::replacement | ( | ) | const |
Returns the fix that will replace the problematic source code.
Definition at line 1617 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion(), and QQmlJSFixSuggestion::replacement().
Here is the call graph for this function:| void QQmlSA::FixSuggestion::setAutoApplicable | ( | bool | autoApplicable = true | ) |
Sets uses autoApplicable to set whtether this suggested fix can be applied automatically.
Definition at line 1657 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion(), and QQmlJSFixSuggestion::setAutoApplicable().
Here is the call graph for this function:Sets fileName as the name of the file where this fix suggestion applies.
Definition at line 1625 of file qqmlsa.cpp.
References fileName(), QQmlSA::FixSuggestionPrivate::fixSuggestion(), and QQmlJSFixSuggestion::setFilename().
Here is the call graph for this function:Sets hint as the hint for this fix suggestion.
Definition at line 1641 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion(), hint(), and QQmlJSFixSuggestion::setHint().
Referenced by AttachedPropertyReuse::onRead().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
|
friend |