Debian Codegraph @

sarif/location_relationship.go

raw symbols SCIP
1 package sarifscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/
2
3 // LocationRelationship ...
4 type LocationRelationshipscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship# struct {
5 PropertyBagscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#PropertyBag.
6 Targetscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#Target. uint `json:"target"`
7 Kindsscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#Kinds. []string `json:"kinds,omitempty"`
8 Descriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#Description. *Messagescip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Message# `json:"description,omitempty"`
9 }
10
11 // NewLocationRelationship ...
12 func NewLocationRelationshipscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/NewLocationRelationship().(target int) *LocationRelationshipscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship# {
13 t := uint(target)
14 return &LocationRelationshipscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#{
15 Targetscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#Target.: t,
16 }
17 }
18
19 // WithKind ...
20 func (l *LocationRelationshipscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#) WithKindscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#WithKind().(kind string) *LocationRelationshipscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship# {
21 l.Kindsscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#Kinds. = append(l.Kindsscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#Kinds., kind)
22 return l
23 }
24
25 // WithDescription ...
26 func (l *LocationRelationshipscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#) WithDescriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#WithDescription().(message *Messagescip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Message#) *LocationRelationshipscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship# {
27 l.Descriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/LocationRelationship#Description. = message
28 return l
29 }