Skip to content
Open
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
5 changes: 5 additions & 0 deletions src/main/protobuf/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ java_proto_library(
],
)

proto_library(
name = "diagnostic_category_proto",
srcs = ["diagnostic_category.proto"],
)

proto_library(
name = "css_metadata_proto",
srcs = [
Expand Down
21 changes: 21 additions & 0 deletions src/main/protobuf/diagnostic_category.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
edition = "2023";

package soy.compiler;

option java_multiple_files = true;
option java_package = "com.google.template.soy.diagnosticcategory";
option java_outer_classname = "DiagnosticCategoryProto";

enum Category {
UNKNOWN_CATEGORY = 0;

// Based on
// https://typestrong.org/typedoc-auto-docs/typedoc/enums/TypeScript.DiagnosticCategory.html
ERROR = 1;
WARNING = 2;
MESSAGE = 3;
SUGGESTION = 4;

// Metric represents usage of a specific feature.
IMPRESSION = 5;
}