Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions experimental/ir/lower_deprecated.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package ir

import (
"github.com/bufbuild/protocompile/experimental/report"
"github.com/bufbuild/protocompile/experimental/report/tags"
"github.com/bufbuild/protocompile/experimental/seq"
"github.com/bufbuild/protocompile/experimental/source"
)
Expand Down Expand Up @@ -128,5 +129,6 @@ func (e errDeprecated) Diagnose(d *report.Diagnostic) {
report.Message("`%s` is deprecated", e.name),
report.Snippet(e.ref),
report.Snippetf(e.cause, "deprecated here"),
report.Tag(tags.Deprecated),
)
}
3 changes: 3 additions & 0 deletions experimental/report/tags/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ const (
// in the current scope. This may indicate a missing import or a reference
// to a non-existent symbol.
UnknownSymbol = "protobuf:unknown_symbol"

// Deprecated is the tag for a diagnostic where a symbol is deprecated.
Deprecated = "protobuf:deprecated"
)
Loading