载入中...
搜索中...
未找到
eve::dnut::DnutDiagnostic结构体 参考
One structured diagnostic anchored to a .dnut source location.
更多...
#include <DnutDiagnostic.h>
Public 成员函数 | |
| bool | operator== (const DnutDiagnostic &) const =default |
| Operator ==. | |
Public 属性 | |
| DnutSeverity | severity = DnutSeverity::Error |
| std::string | path |
| Source path supplied by the caller; never invented by the frontend. | |
| int | line = 0 |
| One-based source line, or zero for a document-level diagnostic. | |
| int | column = 0 |
| One-based source column, or zero when unknown. | |
| std::string | message |
| Human-readable explanation; never used for program decisions. | |
详细描述
One structured diagnostic anchored to a .dnut source location.
line and column are one-based. A zero location means "the whole document" and is used by asset-level checks that have no single source line.
在文件 DnutDiagnostic.h 第 22 行定义.
成员函数说明
◆ operator==()
|
default |
Operator ==.
类成员变量说明
◆ column
| int eve::dnut::DnutDiagnostic::column = 0 |
One-based source column, or zero when unknown.
在文件 DnutDiagnostic.h 第 29 行定义.
◆ line
| int eve::dnut::DnutDiagnostic::line = 0 |
One-based source line, or zero for a document-level diagnostic.
在文件 DnutDiagnostic.h 第 27 行定义.
◆ message
| std::string eve::dnut::DnutDiagnostic::message |
Human-readable explanation; never used for program decisions.
在文件 DnutDiagnostic.h 第 31 行定义.
◆ path
| std::string eve::dnut::DnutDiagnostic::path |
Source path supplied by the caller; never invented by the frontend.
在文件 DnutDiagnostic.h 第 25 行定义.
◆ severity
| DnutSeverity eve::dnut::DnutDiagnostic::severity = DnutSeverity::Error |
在文件 DnutDiagnostic.h 第 23 行定义.
该结构体的文档由以下文件生成:
- src/modules/dnut_interpreter/DnutDiagnostic.h