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

Function newFileAnnotation

private/bufpkg/bufanalysis/file_annotation.go:34–56  ·  view source on GitHub ↗
(
	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

32}
33
34func newFileAnnotation(
35 fileInfo FileInfo,
36 startLine int,
37 startColumn int,
38 endLine int,
39 endColumn int,
40 typeString string,
41 message string,
42 pluginName string,
43 policyName string,
44) *fileAnnotation {
45 return &fileAnnotation{
46 fileInfo: fileInfo,
47 startLine: startLine,
48 startColumn: startColumn,
49 endLine: endLine,
50 endColumn: endColumn,
51 typeString: typeString,
52 message: message,
53 pluginName: pluginName,
54 policyName: policyName,
55 }
56}
57
58func (f *fileAnnotation) FileInfo() FileInfo {
59 return f.fileInfo

Callers 1

NewFileAnnotationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…