MCPcopy Index your code
hub / github.com/coder/coder / Extend

Method Extend

coderd/dynamicparameters/error.go:76–84  ·  view source on GitHub ↗
(key string, diag hcl.Diagnostics)

Source from the content-addressed store, hash-verified

74}
75
76func (e *DiagnosticError) Extend(key string, diag hcl.Diagnostics) {
77 if e.KeyedDiagnostics == nil {
78 e.KeyedDiagnostics = make(map[string]hcl.Diagnostics)
79 }
80 if _, ok := e.KeyedDiagnostics[key]; !ok {
81 e.KeyedDiagnostics[key] = hcl.Diagnostics{}
82 }
83 e.KeyedDiagnostics[key] = e.KeyedDiagnostics[key].Extend(diag)
84}
85
86func (e *DiagnosticError) Response() (int, codersdk.Response) {
87 resp := codersdk.Response{

Callers 6

AppendMethod · 0.95
CheckTagsFunction · 0.80
failedTagDiagnosticFunction · 0.80
ResolveParametersFunction · 0.80
ErrorMethod · 0.80
CheckPresetsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected