FixSuggestion Class

class QQmlSA ::FixSuggestion

Represents a suggested fix for an issue in the source code. 更多...

头: #include <FixSuggestion>
Status: Technical Preview

公共函数

QString fileName () const
QString fixDescription () const
QString hint () const
bool isAutoApplicable () const
QQmlSA::SourceLocation location () const
QString replacement () const
void setAutoApplicable (bool autoApplicable = true)
void setFileName (const QString & fileName )
void setHint (const QString & hint )

详细描述

成员函数文档编制

QString FixSuggestion:: fileName () const

Returns the name of the file where this fix suggestion applies.

另请参阅 setFileName ().

QString FixSuggestion:: fixDescription () const

Returns the description of the fix.

QString FixSuggestion:: hint () const

Returns the hint for this fix suggestion.

另请参阅 setHint ().

bool FixSuggestion:: isAutoApplicable () const

Returns whether this suggested fix can be applied automatically.

QQmlSA::SourceLocation FixSuggestion:: location () const

Returns the location where the fix would be applied.

QString FixSuggestion:: replacement () const

Returns the fix that will replace the problematic source code.

void FixSuggestion:: setAutoApplicable ( bool autoApplicable = true)

Sets uses autoApplicable to set whtether this suggested fix can be applied automatically.

另请参阅 isAutoApplicable ().

void FixSuggestion:: setFileName (const QString & fileName )

设置 fileName as the name of the file where this fix suggestion applies.

另请参阅 fileName ().

void FixSuggestion:: setHint (const QString & hint )

设置 hint as the hint for this fix suggestion.

另请参阅 hint ().