| 1 |
package sarif |
| 2 |
|
| 3 |
// Conversion ... |
| 4 |
type Conversion struct { |
| 5 |
AnalysisToolLogFiles []*ArtifactLocation `json:"analysisToolLogFiles,omitempty"` |
| 6 |
Invocation *Invocation `json:"invocation,omitempty"` |
| 7 |
Tool *Tool `json:"tool"` |
| 8 |
PropertyBag |
| 9 |
|
| 10 |
} |
| 11 |
|
| 12 |
// NewConversion creates a new Conversion and returns a pointer to it |
| 13 |
func NewConversion() *Conversion { |
| 14 |
return &Conversion{} |
| 15 |
} |
| 16 |
|
| 17 |
// WithInvocation sets the Invocation |
| 18 |
func (conversion *Conversion) WithInvocation(invocation *Invocation) *Conversion { |
| 19 |
conversion.Invocation = invocation |
| 20 |
return conversion |
| 21 |
} |
| 22 |
|
| 23 |
// WithTool sets the Tool |
| 24 |
func (conversion *Conversion) WithTool(tool *Tool) *Conversion { |
| 25 |
conversion.Tool = tool |
| 26 |
return conversion |
| 27 |
} |