IdeDiagnostic class

A structured diagnostic emitted by IdeIntelligenceEngine for the VS Code extension.

Carries source range, severity, category, message, and optional quick-fixes.

Constructors

IdeDiagnostic({required String filePath, required int startLine, required int startColumn, required int endLine, required int endColumn, required String severity, required String code, required String source, required String category, required String message, required String nodeId, List<IdeQuickFix> quickFixes = const []})
Creates an IdeDiagnostic.
const

Properties

category String
High-level category: 'architecture' or 'governance'.
final
code String
Short machine-readable code identifying the rule, e.g. 'god-component'.
final
endColumn int
0-based column number where the diagnostic ends.
final
endLine int
0-based line number where the diagnostic ends.
final
filePath String
Absolute path to the file this diagnostic belongs to.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable description displayed in the editor.
final
nodeId String
Stable component ID from the ArchitectureGraph this diagnostic belongs to.
final
quickFixes List<IdeQuickFix>
Optional list of code actions the editor can offer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity String
Diagnostic severity string: 'error', 'warning', or 'information'.
final
source String
Publisher string shown in the VS Code Problems panel, e.g. 'flutter_state_migrator'.
final
startColumn int
0-based column number where the diagnostic starts.
final
startLine int
0-based line number where the diagnostic starts.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialises this diagnostic to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited