1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/proto/types.proto
2018-09-06 15:13:08 -07:00

117 lines
2.0 KiB
Protocol Buffer

// This file was generated by proto-gen. Do not edit by hand.
syntax = "proto3";
package github.semantic;
option java_package = "com.github.semantic.types";
option go_package = "github.com/semantic/types;types";
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;
}
message BlobPair {
Blob before = 1;
Blob after = 2;
}
message Blob {
bytes blobSource = 1;
string blobPath = 2;
Language blobLanguage = 3;
}
message ErrorSite {
string errorMessage = 1;
SrcLoc errorLocation = 2;
}
message Position {
int64 line = 1;
int64 column = 2;
}
message Project {
string projectRootDir = 1;
repeated Blob projectBlobs = 2;
Language projectLanguage = 3;
repeated string projectExcludeDirs = 4[packed = false] ;
}
message Span {
Position start = 1;
Position end = 2;
}
message SrcLoc {
string srcLocPackage = 1;
string srcLocModule = 2;
string srcLocFile = 3;
int64 srcLocStartLine = 4;
int64 srcLocStartCol = 5;
int64 srcLocEndLine = 6;
int64 srcLocEndCol = 7;
}
message ControlFlowGraph {
repeated ControlFlowVertex vertices = 1;
repeated ControlFlowEdge edges = 2;
}
message ControlFlowEdge {
string from = 1;
string to = 2;
}
message ControlFlowVertex {
oneof vertex {
Package package = 1;
Module module = 2;
UnknownModule unknownModule = 3;
Variable variable = 4;
Method method = 5;
Function function = 6;
}
message Package {
string id = 1;
string name = 2;
}
message Module {
string id = 1;
string name = 2;
}
message UnknownModule {
string id = 1;
string name = 2;
}
message Variable {
string id = 1;
string name = 2;
string moduleName = 3;
Span span = 4;
}
message Method {
string id = 1;
string name = 2;
string moduleName = 3;
Span span = 4;
}
message Function {
string id = 1;
string name = 2;
string moduleName = 3;
Span span = 4;
}
}