Vixen
dd8b0a81
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. Span is the other direction of the same map — the lines the node wrote — and is empty for every diagnostic raised about the graph rather than about the text.

Fields and properties (6)

  • 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.

  • public NodeSpan Span

    Which lines of the generated file it is about, when it came from one.

Methods (2)

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

    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 (63, showing 40)

  • BakedMaterialImageTestsVixen.Graphics.Golden.Tests
  • AssetEditorDiagnosticIdTestsVixen.Editor.AssetEditors.Tests
  • CompositorCompilerTestsVixen.Editor.AssetEditors.Tests
  • CompositorDocumentVixen.Editor.AssetEditors
  • CompositorViewVixen.Editor.AssetEditors
  • FlattenerVixen.Editor.NodeGraph
  • GraphDeclarationTestsVixen.Editor.NodeGraph.Tests
  • LayerStackCompilationVixen.Editor.Texturing
  • LayerStackDiagnosticListTestsVixen.Editor.Texturing.Tests
  • LayerStackDocumentVixen.Editor.Texturing
  • LayerStackExplodeVixen.Editor.Texturing
  • LayerStackPictureVixen.Editor.Texturing
  • LayerStackPreviewVixen.Editor.Texturing
  • LayerStackShapeTestsVixen.Editor.Texturing.Tests
  • LayerStackViewVixen.Editor.Texturing
  • MaskStackTestsVixen.Editor.Texturing.Tests
  • MaterialBakeOutcomeVixen.Editor.Texturing
  • MaterialBakeRouteVixen.Editor.Texturing
  • MaterialBakeRouteDeviceTestsVixen.Editor.Texturing.Tests
  • MeshMapGeneratorBindingTestsVixen.Editor.App.Tests
  • NodeGraphCompilationVixen.Editor.NodeGraph
  • NodeGraphCompilerVixen.Editor.NodeGraph
  • NodeGraphDocumentVixen.Editor.NodeGraph
  • NodeGraphModelTestsVixen.Editor.NodeGraph.Tests
  • NodeTypingTestsVixen.Editor.NodeGraph.Tests
  • ShaderGraphCompilerTestsVixen.Editor.ShaderGraph.Tests
  • ShaderGraphDocumentVixen.Editor.AssetEditors
  • ShaderGraphPreviewTestsVixen.Editor.ShaderGraph.Tests
  • ShaderGraphSourcesVixen.Editor.Assets
  • ShaderGraphSpanTestsVixen.Editor.ShaderGraph.Tests
  • ShaderGraphTestsVixen.Editor.AssetEditors.Tests
  • ShaderGraphViewVixen.Editor.AssetEditors
  • SubGraphTestsVixen.Editor.NodeGraph.Tests
  • SubGraphsVixen.Editor.NodeGraph
  • SurfaceGraphTestsVixen.Editor.ShaderGraph.Tests
  • TextureCompoundLibraryVixen.Editor.TextureGraph
  • TextureDiagnosticIdTestsVixen.Editor.TextureGraph.Tests
  • TextureGraphCompilationVixen.Editor.Texturing
  • TextureGraphCompilerVixen.Editor.TextureGraph
  • TextureGraphCompilerTestsVixen.Editor.TextureGraph.Tests