forked from qt-creator/qt-creator
QmlJSEditor: Display code model warnings as annotations
Change-Id: Ief6ed8fe551846f5e788c14a49269231462ea40a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
@@ -47,6 +47,8 @@ namespace QmlJS {
|
||||
namespace AST { class UiObjectMember; }
|
||||
}
|
||||
|
||||
namespace TextEditor { class TextMark; }
|
||||
|
||||
namespace QmlJSEditor {
|
||||
|
||||
class QmlJSEditorDocument;
|
||||
@@ -127,6 +129,14 @@ private:
|
||||
QmlJS::IContextPane *m_contextPane = nullptr;
|
||||
int m_oldCursorPosition = -1;
|
||||
|
||||
void createTextMarks(const QList<QmlJS::DiagnosticMessage> &diagnostics);
|
||||
void cleanDiagnosticMarks();
|
||||
QVector<TextEditor::TextMark *> m_diagnosticMarks;
|
||||
|
||||
void createTextMarks(const QmlJSTools::SemanticInfo &info);
|
||||
void cleanSemanticMarks();
|
||||
QVector<TextEditor::TextMark *> m_semanticMarks;
|
||||
|
||||
FindReferences *m_findReferences;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user