Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
SourceDiagnosticsPanel.h File Reference
#include <cstddef>
#include <cstdint>
#include <optional>
#include <span>
#include "donner/editor/SourceDiagnostics.h"
Include dependency graph for SourceDiagnosticsPanel.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::editor::SourceDiagnosticCounts
 Severity totals shown in the source diagnostics header. More...
struct  donner::editor::SourceDiagnosticsPanelAction
 User interaction emitted by one diagnostics panel frame. More...
class  donner::editor::SourceDiagnosticsPanel
 Compact bottom panel presenting source warnings and errors. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

SourceDiagnosticCounts donner::editor::CountSourceDiagnostics (std::span< const SourceDiagnostic > diagnostics)
 Count errors and warnings in a diagnostic snapshot.
const SourceDiagnostic * donner::editor::FindSourceDiagnostic (std::span< const SourceDiagnostic > diagnostics, std::uint64_t id)
 Find a diagnostic by stable identifier; return null when absent.

Function Documentation

◆ CountSourceDiagnostics()

SourceDiagnosticCounts donner::editor::CountSourceDiagnostics ( std::span< const SourceDiagnostic > diagnostics)
nodiscard

Count errors and warnings in a diagnostic snapshot.

Parameters
diagnosticsDiagnostics to count.

◆ FindSourceDiagnostic()

const SourceDiagnostic * donner::editor::FindSourceDiagnostic ( std::span< const SourceDiagnostic > diagnostics,
std::uint64_t id )
nodiscard

Find a diagnostic by stable identifier; return null when absent.

Parameters
diagnosticsBorrowed diagnostics to search.
idIdentifier to find.