mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Scope the term types to different protobuf packages
This commit is contained in:
parent
749579229a
commit
7aa6f039bc
@ -47,16 +47,16 @@ message ParseTreeResponse {
|
||||
message RawParseTreeResponse {
|
||||
oneof response_type {
|
||||
RubyResponse ruby = 1;
|
||||
JSONResponse json = 1;
|
||||
JSONResponse json = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message RubyResponse {
|
||||
repeated RubyTerm terms = 1;
|
||||
repeated ruby.RubyTerm terms = 1;
|
||||
}
|
||||
|
||||
message JSONResponse {
|
||||
repeated JSONTerm terms = 1;
|
||||
repeated json.JSONTerm terms = 1;
|
||||
}
|
||||
|
||||
message SummarizeDiffRequest {
|
||||
|
@ -1,5 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package github.semantic;
|
||||
import "types.proto";
|
||||
package github.semantic.json;
|
||||
message JSONTerm { JSONSyntax syntax = 1;
|
||||
}
|
||||
message JSONSyntax { oneof syntax {Null null = 1;
|
||||
|
@ -1,5 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package github.semantic;
|
||||
import "types.proto";
|
||||
package github.semantic.ruby;
|
||||
message RubyTerm { RubySyntax syntax = 1;
|
||||
}
|
||||
message Comment { string commentContent = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user