MCPcopy Create free account
hub / github.com/bufbuild/buf / NewFileAnnotation

Function NewFileAnnotation

private/bufpkg/bufanalysis/bufanalysis.go:172–194  ·  view source on GitHub ↗

NewFileAnnotation returns a new FileAnnotation.

(
	fileInfo FileInfo,
	startLine int,
	startColumn int,
	endLine int,
	endColumn int,
	typeString string,
	message string,
	pluginName string,
	policyName string,
)

Source from the content-addressed store, hash-verified

170
171// NewFileAnnotation returns a new FileAnnotation.
172func NewFileAnnotation(
173 fileInfo FileInfo,
174 startLine int,
175 startColumn int,
176 endLine int,
177 endColumn int,
178 typeString string,
179 message string,
180 pluginName string,
181 policyName string,
182) FileAnnotation {
183 return newFileAnnotation(
184 fileInfo,
185 startLine,
186 startColumn,
187 endLine,
188 endColumn,
189 typeString,
190 message,
191 pluginName,
192 policyName,
193 )
194}
195
196// FileAnnotationSet is a set of FileAnnotations.
197type FileAnnotationSet interface {

Callers 6

newFileAnnotationFunction · 0.92
normalizeFileAnnotationsFunction · 0.92
compileImageFunction · 0.92

Calls 1

newFileAnnotationFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…