1
1
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:
joshvera 2018-07-02 11:37:49 -04:00
parent 749579229a
commit 7aa6f039bc
3 changed files with 7 additions and 5 deletions

View File

@ -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 {

View File

@ -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;

View File

@ -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;