1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/proto/php_term.proto
2018-12-10 16:42:33 -05:00

722 lines
12 KiB
Protocol Buffer

// This file was generated by proto-gen. Do not edit by hand.
syntax = "proto3";
package github.semantic.phpterm;
import "types.proto";
option java_package = "com.github.semantic.phpterm";
option go_package = "github.com/semantic/phpterm;php";
message PHPTerm {
PHPSyntax syntax = 1;
}
message PHPSyntax {
oneof syntax {
Comment comment = 1;
Class class = 2;
Function function = 3;
Method method = 4;
VariableDeclaration variableDeclaration = 5;
Plus plus = 6;
Minus minus = 7;
Times times = 8;
DividedBy dividedBy = 9;
Modulo modulo = 10;
Power power = 11;
Negate negate = 12;
FloorDivision floorDivision = 13;
BAnd bAnd = 14;
BOr bOr = 15;
BXOr bXOr = 16;
LShift lShift = 17;
RShift rShift = 18;
And and = 19;
Not not = 20;
Or or = 21;
XOr xOr = 22;
Call call = 23;
Cast cast = 24;
LessThan lessThan = 25;
LessThanEqual lessThanEqual = 26;
GreaterThan greaterThan = 27;
GreaterThanEqual greaterThanEqual = 28;
Equal equal = 29;
StrictEqual strictEqual = 30;
Comparison comparison = 31;
InstanceOf instanceOf = 32;
MemberAccess memberAccess = 33;
New new = 34;
SequenceExpression sequenceExpression = 35;
Subscript subscript = 36;
Member member = 37;
Array array = 38;
Float float = 39;
Integer integer = 40;
KeyValue keyValue = 41;
TextElement textElement = 42;
Assignment assignment = 43;
Break break = 44;
Catch catch = 45;
Continue continue = 46;
DoWhile doWhile = 47;
Else else = 48;
Finally finally = 49;
For for = 50;
ForEach forEach = 51;
Goto goto = 52;
If if = 53;
Match match = 54;
Pattern pattern = 55;
Return return = 56;
Statements statements = 57;
Throw throw = 58;
Try try = 59;
While while = 60;
Yield yield = 61;
AliasAs aliasAs = 62;
ArrayElement arrayElement = 63;
BaseTypeDeclaration baseTypeDeclaration = 64;
CastType castType = 65;
ClassBaseClause classBaseClause = 66;
ClassConstDeclaration classConstDeclaration = 67;
ClassInterfaceClause classInterfaceClause = 68;
ClassModifier classModifier = 69;
Clone clone = 70;
ConstDeclaration constDeclaration = 71;
ConstructorDeclaration constructorDeclaration = 72;
Context context = 73;
Declare declare = 74;
DeclareDirective declareDirective = 75;
DestructorDeclaration destructorDeclaration = 76;
Echo echo = 77;
Empty empty = 78;
EmptyIntrinsic emptyIntrinsic = 79;
Error error = 80;
ErrorControl errorControl = 81;
EvalIntrinsic evalIntrinsic = 82;
ExitIntrinsic exitIntrinsic = 83;
GlobalDeclaration globalDeclaration = 84;
Identifier identifier = 85;
Include include = 86;
IncludeOnce includeOnce = 87;
InsteadOf insteadOf = 88;
InterfaceBaseClause interfaceBaseClause = 89;
InterfaceDeclaration interfaceDeclaration = 90;
IssetIntrinsic issetIntrinsic = 91;
LabeledStatement labeledStatement = 92;
Namespace namespace = 93;
NamespaceAliasingClause namespaceAliasingClause = 94;
NamespaceName namespaceName = 95;
NamespaceUseClause namespaceUseClause = 96;
NamespaceUseDeclaration namespaceUseDeclaration = 97;
NamespaceUseGroupClause namespaceUseGroupClause = 98;
NewVariable newVariable = 99;
PrintIntrinsic printIntrinsic = 100;
PropertyDeclaration propertyDeclaration = 101;
PropertyModifier propertyModifier = 102;
QualifiedName qualifiedName = 103;
RelativeScope relativeScope = 104;
Require require = 105;
RequireOnce requireOnce = 106;
ReturnType returnType = 107;
ScalarType scalarType = 108;
ShellCommand shellCommand = 109;
SimpleVariable simpleVariable = 110;
Static static = 111;
Text text = 112;
TraitDeclaration traitDeclaration = 113;
TraitUseClause traitUseClause = 114;
TraitUseSpecification traitUseSpecification = 115;
TypeDeclaration typeDeclaration = 116;
Unset unset = 117;
Update update = 118;
UseClause useClause = 119;
VariableName variableName = 120;
Annotation annotation = 121;
List list = 122;
}
}
message Comment {
string commentContent = 1;
}
message Class {
repeated PHPTerm classContext = 1;
PHPTerm classIdentifier = 2;
repeated PHPTerm classSuperclasses = 3;
PHPTerm classBody = 4;
}
message Function {
repeated PHPTerm functionContext = 1;
PHPTerm functionName = 2;
repeated PHPTerm functionParameters = 3;
PHPTerm functionBody = 4;
}
message Method {
repeated PHPTerm methodContext = 1;
PHPTerm methodReceiver = 2;
PHPTerm methodName = 3;
repeated PHPTerm methodParameters = 4;
PHPTerm methodBody = 5;
}
message VariableDeclaration {
repeated PHPTerm variableDeclarations = 1;
}
message Plus {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Minus {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Times {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message DividedBy {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Modulo {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Power {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Negate {
PHPTerm value = 1;
}
message FloorDivision {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message BAnd {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message BOr {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message BXOr {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message LShift {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message RShift {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message And {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Not {
PHPTerm value = 1;
}
message Or {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message XOr {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Call {
repeated PHPTerm callContext = 1;
PHPTerm callFunction = 2;
repeated PHPTerm callParams = 3;
PHPTerm callBlock = 4;
}
message Cast {
PHPTerm castSubject = 1;
PHPTerm castType = 2;
}
message LessThan {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message LessThanEqual {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message GreaterThan {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message GreaterThanEqual {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Equal {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message StrictEqual {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Comparison {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message InstanceOf {
PHPTerm instanceOfSubject = 1;
PHPTerm instanceOfObject = 2;
}
message MemberAccess {
PHPTerm lhs = 1;
bytes rhs = 2;
}
message New {
repeated PHPTerm newSubject = 1;
}
message SequenceExpression {
PHPTerm firstExpression = 1;
PHPTerm secondExpression = 2;
}
message Subscript {
PHPTerm lhs = 1;
repeated PHPTerm rhs = 2;
}
message Member {
PHPTerm lhs = 1;
PHPTerm rhs = 2;
}
message Array {
repeated PHPTerm arrayElements = 1;
}
message Float {
string floatContent = 1;
}
message Integer {
string integerContent = 1;
}
message KeyValue {
PHPTerm key = 1;
PHPTerm value = 2;
}
message TextElement {
string textElementContent = 1;
}
message Assignment {
repeated PHPTerm assignmentContext = 1;
PHPTerm assignmentTarget = 2;
PHPTerm assignmentValue = 3;
}
message Break {
PHPTerm value = 1;
}
message Catch {
PHPTerm catchException = 1;
PHPTerm catchBody = 2;
}
message Continue {
PHPTerm value = 1;
}
message DoWhile {
PHPTerm doWhileCondition = 1;
PHPTerm doWhileBody = 2;
}
message Else {
PHPTerm elseCondition = 1;
PHPTerm elseBody = 2;
}
message Finally {
PHPTerm value = 1;
}
message For {
PHPTerm forBefore = 1;
PHPTerm forCondition = 2;
PHPTerm forStep = 3;
PHPTerm forBody = 4;
}
message ForEach {
PHPTerm forEachBinding = 1;
PHPTerm forEachSubject = 2;
PHPTerm forEachBody = 3;
}
message Goto {
PHPTerm gotoLocation = 1;
}
message If {
PHPTerm ifCondition = 1;
PHPTerm ifThenBody = 2;
PHPTerm ifElseBody = 3;
}
message Match {
PHPTerm matchSubject = 1;
PHPTerm matchPatterns = 2;
}
message Pattern {
PHPTerm value = 1;
PHPTerm patternBody = 2;
}
message Return {
PHPTerm value = 1;
}
message Statements {
repeated PHPTerm statements = 1;
}
message Throw {
PHPTerm value = 1;
}
message Try {
PHPTerm tryBody = 1;
repeated PHPTerm tryCatch = 2;
}
message While {
PHPTerm whileCondition = 1;
PHPTerm whileBody = 2;
}
message Yield {
PHPTerm value = 1;
}
message AliasAs {
PHPTerm aliasAsName = 1;
PHPTerm aliasAsModifier = 2;
PHPTerm aliasAsClause = 3;
}
message ArrayElement {
PHPTerm value = 1;
}
message BaseTypeDeclaration {
PHPTerm value = 1;
}
message CastType {
string _castType = 1;
}
message ClassBaseClause {
PHPTerm value = 1;
}
message ClassConstDeclaration {
PHPTerm visibility = 1;
repeated PHPTerm elements = 2;
}
message ClassInterfaceClause {
repeated PHPTerm values = 1;
}
message ClassModifier {
string value = 1;
}
message Clone {
PHPTerm value = 1;
}
message ConstDeclaration {
repeated PHPTerm values = 1;
}
message ConstructorDeclaration {
repeated PHPTerm modifiers = 1;
repeated PHPTerm parameters = 2;
PHPTerm body = 3;
}
message Context {
repeated PHPTerm contextTerms = 1;
PHPTerm contextSubject = 2;
}
message Declare {
PHPTerm left = 1;
PHPTerm right = 2;
}
message DeclareDirective {
PHPTerm value = 1;
}
message DestructorDeclaration {
repeated PHPTerm body = 1;
PHPTerm name = 2;
}
message Echo {
PHPTerm value = 1;
}
message Empty { }
message EmptyIntrinsic {
PHPTerm value = 1;
}
message Error {
repeated ErrorSite errorCallStack = 1;
repeated string errorExpected = 2;
string errorActual = 3;
repeated PHPTerm errorChildren = 4;
}
message ErrorControl {
PHPTerm value = 1;
}
message EvalIntrinsic {
PHPTerm value = 1;
}
message ExitIntrinsic {
PHPTerm value = 1;
}
message GlobalDeclaration {
repeated PHPTerm values = 1;
}
message Identifier {
bytes name = 1;
}
message Include {
PHPTerm value = 1;
}
message IncludeOnce {
PHPTerm value = 1;
}
message InsteadOf {
PHPTerm left = 1;
PHPTerm right = 2;
}
message InterfaceBaseClause {
repeated PHPTerm values = 1;
}
message InterfaceDeclaration {
PHPTerm name = 1;
PHPTerm base = 2;
repeated PHPTerm declarations = 3;
}
message IssetIntrinsic {
PHPTerm value = 1;
}
message LabeledStatement {
PHPTerm _labeledStatementIdentifier = 1;
}
message Namespace {
repeated PHPTerm namespaceName = 1;
PHPTerm namespaceBody = 2;
}
message NamespaceAliasingClause {
PHPTerm value = 1;
}
message NamespaceName {
repeated PHPTerm names = 1;
}
message NamespaceUseClause {
repeated PHPTerm values = 1;
}
message NamespaceUseDeclaration {
repeated PHPTerm values = 1;
}
message NamespaceUseGroupClause {
repeated PHPTerm values = 1;
}
message NewVariable {
repeated PHPTerm values = 1;
}
message PrintIntrinsic {
PHPTerm value = 1;
}
message PropertyDeclaration {
PHPTerm modifier = 1;
repeated PHPTerm elements = 2;
}
message PropertyModifier {
PHPTerm visibility = 1;
PHPTerm static = 2;
}
message QualifiedName {
PHPTerm name = 1;
PHPTerm identifier = 2;
}
message RelativeScope {
string value = 1;
}
message Require {
PHPTerm value = 1;
}
message RequireOnce {
PHPTerm value = 1;
}
message ReturnType {
PHPTerm value = 1;
}
message ScalarType {
string value = 1;
}
message ShellCommand {
string value = 1;
}
message SimpleVariable {
PHPTerm value = 1;
}
message Static {
string value = 1;
}
message Text {
string value = 1;
}
message TraitDeclaration {
PHPTerm traitName = 1;
repeated PHPTerm traitStatements = 2;
}
message TraitUseClause {
repeated PHPTerm namespace = 1;
PHPTerm alias = 2;
}
message TraitUseSpecification {
repeated PHPTerm values = 1;
}
message TypeDeclaration {
PHPTerm value = 1;
}
message Unset {
PHPTerm value = 1;
}
message Update {
PHPTerm _updateSubject = 1;
}
message UseClause {
repeated PHPTerm values = 1;
}
message VariableName {
PHPTerm value = 1;
}
message Annotation {
PHPTerm annotationSubject = 1;
PHPTerm annotationType = 2;
}
message List {
repeated PHPTerm listContent = 1;
}
message Alias {
bytes aliasValue = 1;
bytes aliasName = 2;
}
message ImportPath {
string unPath = 1;
IsRelative pathIsRelative = 2;
}
enum IsRelative {
Unknown = 0;
Relative = 1;
NonRelative = 2;
}