blob: 42abd08d3ac10206bddeea86d34fba1447f00e19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/***************************************************************************************************
Copyright (C) 2024 The Qt Company Ltd.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
***************************************************************************************************/
namespace QtVsTools.Qml
{
using Syntax;
public enum DiagnosticMessageKind { Warning, Error }
/// <summary>
/// Represents a syntax error issued by the QML parser
/// </summary>
public class DiagnosticMessage
{
private DiagnosticMessageKind Kind { get; }
public SourceLocation Location { get; }
public DiagnosticMessage(DiagnosticMessageKind kind, int offset, int length)
{
Kind = kind;
Location = new SourceLocation
{
Offset = offset,
Length = length
};
}
}
}
|