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>.
|
\inmodule QtQmlCompiler More...
#include <qqmlsa.h>
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 autoApplicable to determine whether 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 1650 of file qqmlsa.cpp.
QQmlSA::FixSuggestion::FixSuggestion | ( | const FixSuggestion & | other | ) |
Definition at line 1656 of file qqmlsa.cpp.
|
noexcept |
Definition at line 1661 of file qqmlsa.cpp.
References other().
|
default |
QString QQmlSA::FixSuggestion::fileName | ( | ) | const |
Returns the name of the file where this fix suggestion applies.
Definition at line 1722 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion().
Referenced by setFileName().
QString QQmlSA::FixSuggestion::fixDescription | ( | ) | const |
Returns the description of the fix.
Definition at line 1689 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion().
QString QQmlSA::FixSuggestion::hint | ( | ) | const |
Returns the hint for this fix suggestion.
Definition at line 1738 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion().
Referenced by setHint().
bool QQmlSA::FixSuggestion::isAutoApplicable | ( | ) | const |
Returns whether this suggested fix can be applied automatically.
Definition at line 1755 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion().
QQmlSA::SourceLocation QQmlSA::FixSuggestion::location | ( | ) | const |
Returns the location where the fix would be applied.
Definition at line 1697 of file qqmlsa.cpp.
References QQmlSA::SourceLocationPrivate::createQQmlSASourceLocation(), and QQmlSA::FixSuggestionPrivate::fixSuggestion().
FixSuggestion & QQmlSA::FixSuggestion::operator= | ( | const FixSuggestion & | other | ) |
Definition at line 1666 of file qqmlsa.cpp.
References other().
|
noexcept |
Definition at line 1675 of file qqmlsa.cpp.
References other().
QString QQmlSA::FixSuggestion::replacement | ( | ) | const |
Returns the fix that will replace the problematic source code.
Definition at line 1706 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion().
void QQmlSA::FixSuggestion::setAutoApplicable | ( | bool | autoApplicable = true | ) |
Sets autoApplicable to determine whether this suggested fix can be applied automatically.
Definition at line 1747 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion().
Sets fileName as the name of the file where this fix suggestion applies.
Definition at line 1714 of file qqmlsa.cpp.
References fileName(), and QQmlSA::FixSuggestionPrivate::fixSuggestion().
Sets hint as the hint for this fix suggestion.
Definition at line 1730 of file qqmlsa.cpp.
References QQmlSA::FixSuggestionPrivate::fixSuggestion(), and hint().
Referenced by AttachedPropertyReuse::onRead().
|
friend |
|
friend |