Common.Graph.add.of: def of bend-lint-pack@0.1.1.0 Import: import bend-lint-pack@0.1.1.0/common.bend as Common Lines 149-172 of bend-lint-pack@0.1.1.0/common.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-pack@0.1.1.0/common.bend&start_line=149&end_line=172 import Base import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint def Graph.add.of( g: Graph, +owner: String, +inst: Bool, +kind: String, +name: String, span: Maybe<&2, Lint.Span> ) -> Graph: match g: case Graph{owners, edges, into}: Graph.link( Bool.and( Bool.not(inst), Bool.and( String.eq(kind, "Ref"), Bool.and(Bool.not(String.is_empty(name)), Bool.not(String.eq(name, owner))) ) ), owner, name, Owners.note(owners, owner, inst, span), edges, into ) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/common.bend&name=Graph https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/common.bend&name=Graph.link https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/common.bend&name=Owners.note https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/vendor/lint.bend&name=Span