Vixen
02b45cc4
csharp
public readonly record struct NodeDiagnostic

Something the compiler has to say, about a place an author can see.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

It carries a node and a port because that is the whole point. A generated shader that fails to compile reports a line and a column in text the author never wrote; doc 07 calls for those to be mapped back to node ports, and a diagnostic that cannot name one cannot be mapped. Every diagnostic raised here names the node it came from, and the ones about a connection name the port too.

Fields and properties (5)

  • public string Id

    A stable code, so a test names one without matching prose.

  • public string Message

    What is wrong, as a person would say it.

  • public NodeId Node

    Which node it is about.

  • public string Port

    Which of its ports, when it is about one.

  • public NodeSeverity Severity

    How much it matters.

Methods (2)

  • public NodeDiagnostic(string Id, string Message, NodeId Node, string Port = "", NodeSeverity Severity = Error)

    Something the compiler has to say, about a place an author can see.

  • public override string ToString()

    Returns the fully qualified type name of this instance.

Used by (19)

  • CompositorCompilerTestsVixen.Editor.AssetEditors.Tests
  • CompositorDocumentVixen.Editor.AssetEditors
  • CompositorViewVixen.Editor.AssetEditors
  • FlattenerVixen.Editor.NodeGraph
  • NodeGraphCompilationVixen.Editor.NodeGraph
  • NodeGraphCompilerVixen.Editor.NodeGraph
  • NodeGraphDocumentVixen.Editor.NodeGraph
  • NodeGraphModelTestsVixen.Editor.NodeGraph.Tests
  • NodeTypingTestsVixen.Editor.NodeGraph.Tests
  • ShaderGraphCompilerTestsVixen.Editor.ShaderGraph.Tests
  • ShaderGraphDocumentVixen.Editor.AssetEditors
  • ShaderGraphTestsVixen.Editor.AssetEditors.Tests
  • ShaderGraphViewVixen.Editor.AssetEditors
  • SubGraphTestsVixen.Editor.NodeGraph.Tests
  • SubGraphsVixen.Editor.NodeGraph
  • VfxDocumentVixen.Editor.AssetEditors
  • VfxGraphCompilerTestsVixen.Editor.VfxGraph.Tests
  • VfxGraphViewVixen.Editor.AssetEditors
  • VfxImporterVixen.Editor.Assets