Documentation
¶
Overview ¶
Package diagram contains validation passes for view renderings and diagram layout annotations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LayoutPass ¶
type LayoutPass struct{}
LayoutPass validates the DiagramLayout annotations of a document: a Layout, Route, Style or Note the rendering it applies to cannot draw, a binding that does not read as geometry, a Canvas stated outside the body of the view it annotates, a Picture annotating anything but a view, and two `about` annotations of one kind for one element in one view, of which the first applies; a Note or Picture is never a duplicate, since every one is drawn.
func (LayoutPass) Level ¶
func (LayoutPass) Level() kit.PassLevel
func (LayoutPass) Run ¶
func (LayoutPass) Run(ctx *kit.Context, name string, root *ast.RootNamespace) []diag.Diagnostic
type ViewRenderingPass ¶
type ViewRenderingPass struct{}
ViewRenderingPass checks that a view owns at most one view rendering (SysML v2 §8.3.26); a plain `rendering` member is no view rendering and does not count.
func (ViewRenderingPass) Level ¶
func (ViewRenderingPass) Level() kit.PassLevel
func (ViewRenderingPass) Run ¶
func (ViewRenderingPass) Run(ctx *kit.Context, name string, root *ast.RootNamespace) []diag.Diagnostic