2018-07-12 20:08:30 +03:00
|
|
|
// This file was generated by proto-gen. Do not edit by hand.
|
2018-05-30 18:20:02 +03:00
|
|
|
syntax = "proto3";
|
2018-07-04 00:21:56 +03:00
|
|
|
|
2018-06-28 23:11:15 +03:00
|
|
|
package github.semantic;
|
2018-07-04 00:21:56 +03:00
|
|
|
|
2018-06-27 20:12:56 +03:00
|
|
|
option java_package = "com.github.semantic.types";
|
|
|
|
option go_package = "github.com/semantic/types;types";
|
2018-07-04 00:21:56 +03:00
|
|
|
|
|
|
|
enum Language {
|
|
|
|
UNKNOWN = 0;
|
|
|
|
GO = 1;
|
|
|
|
HASKELL = 2;
|
|
|
|
JAVA = 3;
|
|
|
|
JAVASCRIPT = 4;
|
|
|
|
JSON = 5;
|
|
|
|
JSX = 6;
|
|
|
|
MARKDOWN = 7;
|
|
|
|
PYTHON = 8;
|
|
|
|
RUBY = 9;
|
|
|
|
TYPESCRIPT = 10;
|
|
|
|
PHP = 11;
|
|
|
|
}
|
|
|
|
|
2018-07-16 22:29:29 +03:00
|
|
|
message BlobPair {
|
|
|
|
Blob before = 1;
|
|
|
|
Blob after = 2;
|
|
|
|
}
|
|
|
|
|
2018-07-04 00:21:56 +03:00
|
|
|
message Blob {
|
|
|
|
bytes blobSource = 1;
|
|
|
|
string blobPath = 2;
|
|
|
|
Language blobLanguage = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ErrorSite {
|
|
|
|
string errorMessage = 1;
|
|
|
|
SrcLoc errorLocation = 2;
|
|
|
|
}
|
|
|
|
|
2018-09-07 01:13:08 +03:00
|
|
|
message Position {
|
|
|
|
int64 line = 1;
|
|
|
|
int64 column = 2;
|
2018-07-04 00:21:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Project {
|
|
|
|
string projectRootDir = 1;
|
|
|
|
repeated Blob projectBlobs = 2;
|
|
|
|
Language projectLanguage = 3;
|
|
|
|
repeated string projectExcludeDirs = 4[packed = false] ;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Span {
|
2018-09-07 01:13:08 +03:00
|
|
|
Position start = 1;
|
|
|
|
Position end = 2;
|
2018-07-04 00:21:56 +03:00
|
|
|
}
|
|
|
|
|
2018-09-07 03:27:13 +03:00
|
|
|
message Range {
|
|
|
|
int64 start = 1;
|
|
|
|
int64 end = 2;
|
|
|
|
}
|
|
|
|
|
2018-07-04 00:21:56 +03:00
|
|
|
message SrcLoc {
|
|
|
|
string srcLocPackage = 1;
|
|
|
|
string srcLocModule = 2;
|
|
|
|
string srcLocFile = 3;
|
|
|
|
int64 srcLocStartLine = 4;
|
|
|
|
int64 srcLocStartCol = 5;
|
|
|
|
int64 srcLocEndLine = 6;
|
|
|
|
int64 srcLocEndCol = 7;
|
|
|
|
}
|
|
|
|
|
2018-09-07 01:13:08 +03:00
|
|
|
message ControlFlowGraph {
|
|
|
|
repeated ControlFlowVertex vertices = 1;
|
|
|
|
repeated ControlFlowEdge edges = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ControlFlowEdge {
|
2018-09-07 02:46:27 +03:00
|
|
|
int64 from = 1;
|
|
|
|
int64 to = 2;
|
2018-09-07 01:13:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message ControlFlowVertex {
|
|
|
|
oneof vertex {
|
|
|
|
Package package = 1;
|
|
|
|
Module module = 2;
|
|
|
|
UnknownModule unknownModule = 3;
|
|
|
|
Variable variable = 4;
|
|
|
|
Method method = 5;
|
|
|
|
Function function = 6;
|
|
|
|
}
|
|
|
|
message Package {
|
2018-09-07 02:46:27 +03:00
|
|
|
int64 id = 1;
|
2018-09-07 01:13:08 +03:00
|
|
|
string name = 2;
|
2018-09-07 02:46:27 +03:00
|
|
|
string description = 3;
|
2018-09-07 01:13:08 +03:00
|
|
|
}
|
|
|
|
message Module {
|
2018-09-07 02:46:27 +03:00
|
|
|
int64 id = 1;
|
2018-09-07 01:13:08 +03:00
|
|
|
string name = 2;
|
2018-09-07 02:46:27 +03:00
|
|
|
string description = 3;
|
2018-09-07 01:13:08 +03:00
|
|
|
}
|
|
|
|
message UnknownModule {
|
2018-09-07 02:46:27 +03:00
|
|
|
int64 id = 1;
|
2018-09-07 01:13:08 +03:00
|
|
|
string name = 2;
|
2018-09-07 02:46:27 +03:00
|
|
|
string description = 3;
|
2018-09-07 01:13:08 +03:00
|
|
|
}
|
|
|
|
message Variable {
|
2018-09-07 02:46:27 +03:00
|
|
|
int64 id = 1;
|
2018-09-07 01:13:08 +03:00
|
|
|
string name = 2;
|
2018-09-07 02:46:27 +03:00
|
|
|
string description = 3;
|
|
|
|
string moduleName = 4;
|
|
|
|
Span span = 5;
|
2018-09-07 01:13:08 +03:00
|
|
|
}
|
|
|
|
message Method {
|
2018-09-07 02:46:27 +03:00
|
|
|
int64 id = 1;
|
2018-09-07 01:13:08 +03:00
|
|
|
string name = 2;
|
2018-09-07 02:46:27 +03:00
|
|
|
string description = 3;
|
|
|
|
string moduleName = 4;
|
|
|
|
Span span = 5;
|
2018-09-07 01:13:08 +03:00
|
|
|
}
|
|
|
|
message Function {
|
2018-09-07 02:46:27 +03:00
|
|
|
int64 id = 1;
|
2018-09-07 01:13:08 +03:00
|
|
|
string name = 2;
|
2018-09-07 02:46:27 +03:00
|
|
|
string description = 3;
|
|
|
|
string moduleName = 4;
|
|
|
|
Span span = 5;
|
2018-09-07 01:13:08 +03:00
|
|
|
}
|
2018-07-04 00:21:56 +03:00
|
|
|
}
|
2018-09-07 03:27:13 +03:00
|
|
|
|
|
|
|
message TermGraph {
|
|
|
|
repeated TermVertex vertices = 1;
|
|
|
|
repeated TermEdge edges = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TermEdge {
|
|
|
|
int64 from = 1;
|
|
|
|
int64 to = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TermVertex {
|
|
|
|
int64 id = 1;
|
|
|
|
string name = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TermAnnotation {
|
|
|
|
Range range = 1;
|
|
|
|
Span span = 2;
|
|
|
|
}
|