1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00

Merge pull request #2138 from github/auto-proto-gen

Generate protodefs for syntaxes
This commit is contained in:
Josh Vera 2018-08-17 12:02:14 -04:00 committed by GitHub
commit 46eace3c50
6 changed files with 888 additions and 894 deletions

View File

@ -30,25 +30,6 @@ message PythonDiff {
}
}
message QualifiedName {
oneof sum {
QualifiedName qualifiedName = 1;
RelativeQualifiedName relativeQualifiedName = 2;
}
message QualifiedName {
repeated string paths = 1;
}
message RelativeQualifiedName {
string path = 1;
QualifiedName maybeQualifiedName = 2;
}
}
message Alias {
bytes aliasValue = 1;
bytes aliasName = 2;
}
message PythonSyntax {
oneof syntax {
Comment comment = 1;
@ -158,12 +139,6 @@ message Function {
PythonDiff functionBody = 4;
}
message Variable {
PythonDiff variableName = 1;
PythonDiff variableType = 2;
PythonDiff variableValue = 3;
}
message Plus {
PythonDiff lhs = 1;
PythonDiff rhs = 2;
@ -361,6 +336,26 @@ message Tuple {
repeated PythonDiff tupleContents = 1;
}
message Ellipsis { }
message FutureImport {
repeated Alias futureImportSymbols = 1;
}
message Import {
QualifiedName importFrom = 1;
repeated Alias importSymbols = 2;
}
message QualifiedImport {
repeated string qualifiedImportFrom = 1;
}
message QualifiedAliasedImport {
QualifiedName qualifiedAliasedImportFrom = 1;
PythonDiff qualifiedAliasedImportAlias = 2;
}
message Redirect {
PythonDiff lhs = 1;
PythonDiff rhs = 2;
@ -442,26 +437,6 @@ message Yield {
PythonDiff value = 1;
}
message Ellipsis { }
message Import {
QualifiedName importFrom = 1;
repeated Alias importSymbols = 2;
}
message FutureImport {
repeated Alias futureImportSymbols = 1;
}
message QualifiedImport {
repeated string qualifiedImportFrom = 1;
}
message QualifiedAliasedImport {
QualifiedName qualifiedAliasedImportFrom = 1;
PythonDiff qualifiedAliasedImportAlias = 2;
}
message Context {
repeated PythonDiff contextTerms = 1;
PythonDiff contextSubject = 2;
@ -488,3 +463,22 @@ message Annotation {
message List {
repeated PythonDiff listContent = 1;
}
message QualifiedName {
oneof sum {
QualifiedName qualifiedName = 1;
RelativeQualifiedName relativeQualifiedName = 2;
}
message QualifiedName {
repeated string paths = 1;
}
message RelativeQualifiedName {
string path = 1;
QualifiedName maybeQualifiedName = 2;
}
}
message Alias {
bytes aliasValue = 1;
bytes aliasName = 2;
}

View File

@ -12,25 +12,6 @@ message PythonTerm {
PythonSyntax syntax = 1;
}
message QualifiedName {
oneof sum {
QualifiedName qualifiedName = 1;
RelativeQualifiedName relativeQualifiedName = 2;
}
message QualifiedName {
repeated string paths = 1;
}
message RelativeQualifiedName {
string path = 1;
QualifiedName maybeQualifiedName = 2;
}
}
message Alias {
bytes aliasValue = 1;
bytes aliasName = 2;
}
message PythonSyntax {
oneof syntax {
Comment comment = 1;
@ -337,6 +318,26 @@ message Tuple {
repeated PythonTerm tupleContents = 1;
}
message Ellipsis { }
message FutureImport {
repeated Alias futureImportSymbols = 1;
}
message Import {
QualifiedName importFrom = 1;
repeated Alias importSymbols = 2;
}
message QualifiedImport {
repeated string qualifiedImportFrom = 1;
}
message QualifiedAliasedImport {
QualifiedName qualifiedAliasedImportFrom = 1;
PythonTerm qualifiedAliasedImportAlias = 2;
}
message Redirect {
PythonTerm lhs = 1;
PythonTerm rhs = 2;
@ -418,26 +419,6 @@ message Yield {
PythonTerm value = 1;
}
message Ellipsis { }
message Import {
QualifiedName importFrom = 1;
repeated Alias importSymbols = 2;
}
message FutureImport {
repeated Alias futureImportSymbols = 1;
}
message QualifiedImport {
repeated string qualifiedImportFrom = 1;
}
message QualifiedAliasedImport {
QualifiedName qualifiedAliasedImportFrom = 1;
PythonTerm qualifiedAliasedImportAlias = 2;
}
message Context {
repeated PythonTerm contextTerms = 1;
PythonTerm contextSubject = 2;
@ -464,3 +445,22 @@ message Annotation {
message List {
repeated PythonTerm listContent = 1;
}
message QualifiedName {
oneof sum {
QualifiedName qualifiedName = 1;
RelativeQualifiedName relativeQualifiedName = 2;
}
message QualifiedName {
repeated string paths = 1;
}
message RelativeQualifiedName {
string path = 1;
QualifiedName maybeQualifiedName = 2;
}
}
message Alias {
bytes aliasValue = 1;
bytes aliasName = 2;
}

View File

@ -30,391 +30,6 @@ message RubyDiff {
}
}
message Comment {
string commentContent = 1;
}
message Function {
repeated RubyDiff functionContext = 1;
RubyDiff functionName = 2;
repeated RubyDiff functionParameters = 3;
RubyDiff functionBody = 4;
}
message Method {
repeated RubyDiff methodContext = 1;
RubyDiff methodReceiver = 2;
RubyDiff methodName = 3;
repeated RubyDiff methodParameters = 4;
RubyDiff methodBody = 5;
}
message File { }
message Line { }
message Error {
repeated ErrorSite errorCallStack = 1;
repeated string errorExpected = 2;
string errorActual = 3;
repeated RubyDiff errorChildren = 4;
}
message And {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message BAnd {
RubyDiff left = 1;
RubyDiff right = 2;
}
message BOr {
RubyDiff left = 1;
RubyDiff right = 2;
}
message BXOr {
RubyDiff left = 1;
RubyDiff right = 2;
}
message Call {
repeated RubyDiff callContext = 1;
RubyDiff callFunction = 2;
repeated RubyDiff callParams = 3;
RubyDiff callBlock = 4;
}
message Comparison {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Complement {
RubyDiff value = 1;
}
message DividedBy {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Enumeration {
RubyDiff enumerationStart = 1;
RubyDiff enumerationEnd = 2;
RubyDiff enumerationStep = 3;
}
message Equal {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message FloorDivision {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message GreaterThan {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message GreaterThanEqual {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message LShift {
RubyDiff left = 1;
RubyDiff right = 2;
}
message LessThan {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message LessThanEqual {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Matches {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Member {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message MemberAccess {
RubyDiff lhs = 1;
bytes rhs = 2;
}
message Minus {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Modulo {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Negate {
RubyDiff value = 1;
}
message Not {
RubyDiff value = 1;
}
message NotMatches {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Or {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Plus {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Power {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message RShift {
RubyDiff left = 1;
RubyDiff right = 2;
}
message ScopeResolution {
repeated RubyDiff scopes = 1;
}
message StrictEqual {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Subscript {
RubyDiff lhs = 1;
repeated RubyDiff rhs = 2;
}
message Times {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message This { }
message XOr {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Array {
repeated RubyDiff arrayElements = 1;
}
message Boolean {
bool booleanContent = 1;
}
message Character {
string characterContent = 1;
}
message Complex {
string value = 1;
}
message EscapeSequence {
string value = 1;
}
message Float {
string floatContent = 1;
}
message Hash {
repeated RubyDiff hashElements = 1;
}
message Integer {
string integerContent = 1;
}
message InterpolationElement {
RubyDiff interpolationBody = 1;
}
message KeyValue {
RubyDiff key = 1;
RubyDiff value = 2;
}
message Null { }
message Rational {
string value = 1;
}
message Regex {
string regexContent = 1;
}
message String {
repeated RubyDiff stringElements = 1;
}
message Symbol {
repeated RubyDiff symbolElements = 1;
}
message SymbolElement {
string symbolContent = 1;
}
message TextElement {
string textElementContent = 1;
}
message Class {
RubyDiff classIdentifier = 1;
repeated RubyDiff classSuperClass = 2;
RubyDiff classBody = 3;
}
message Load {
RubyDiff loadPath = 1;
repeated RubyDiff loadWrap = 2;
}
message LowPrecedenceAnd {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message LowPrecedenceOr {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Module {
RubyDiff moduleIdentifier = 1;
repeated RubyDiff moduleStatements = 2;
}
message Require {
bool requireRelative = 1;
RubyDiff requirePath = 2;
}
message Send {
repeated RubyDiff sendReceiver = 1;
repeated RubyDiff sendSelector = 2;
repeated RubyDiff sendArgs = 3;
repeated RubyDiff sendBlock = 4;
}
message Assignment {
repeated RubyDiff assignmentContext = 1;
RubyDiff assignmentTarget = 2;
RubyDiff assignmentValue = 3;
}
message Break {
RubyDiff value = 1;
}
message Catch {
RubyDiff catchException = 1;
RubyDiff catchBody = 2;
}
message Continue {
RubyDiff value = 1;
}
message Else {
RubyDiff elseCondition = 1;
RubyDiff elseBody = 2;
}
message Finally {
RubyDiff value = 1;
}
message ForEach {
RubyDiff forEachBinding = 1;
RubyDiff forEachSubject = 2;
RubyDiff forEachBody = 3;
}
message If {
RubyDiff ifCondition = 1;
RubyDiff ifThenBody = 2;
RubyDiff ifElseBody = 3;
}
message Match {
RubyDiff matchSubject = 1;
RubyDiff matchPatterns = 2;
}
message Pattern {
RubyDiff value = 1;
RubyDiff patternBody = 2;
}
message Retry {
RubyDiff value = 1;
}
message Return {
RubyDiff value = 1;
}
message ScopeEntry {
repeated RubyDiff terms = 1;
}
message ScopeExit {
repeated RubyDiff terms = 1;
}
message Statements {
repeated RubyDiff statements = 1;
}
message Try {
RubyDiff tryBody = 1;
repeated RubyDiff tryCatch = 2;
}
message While {
RubyDiff whileCondition = 1;
RubyDiff whileBody = 2;
}
message Yield {
RubyDiff value = 1;
}
message RubySyntax {
oneof syntax {
Comment comment = 1;
@ -506,6 +121,346 @@ message RubySyntax {
}
}
message Comment {
string commentContent = 1;
}
message Function {
repeated RubyDiff functionContext = 1;
RubyDiff functionName = 2;
repeated RubyDiff functionParameters = 3;
RubyDiff functionBody = 4;
}
message Method {
repeated RubyDiff methodContext = 1;
RubyDiff methodReceiver = 2;
RubyDiff methodName = 3;
repeated RubyDiff methodParameters = 4;
RubyDiff methodBody = 5;
}
message File { }
message Line { }
message Plus {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Minus {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Times {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message DividedBy {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Modulo {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Power {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Negate {
RubyDiff value = 1;
}
message FloorDivision {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message BAnd {
RubyDiff left = 1;
RubyDiff right = 2;
}
message BOr {
RubyDiff left = 1;
RubyDiff right = 2;
}
message BXOr {
RubyDiff left = 1;
RubyDiff right = 2;
}
message LShift {
RubyDiff left = 1;
RubyDiff right = 2;
}
message RShift {
RubyDiff left = 1;
RubyDiff right = 2;
}
message Complement {
RubyDiff value = 1;
}
message And {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Not {
RubyDiff value = 1;
}
message Or {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message XOr {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Call {
repeated RubyDiff callContext = 1;
RubyDiff callFunction = 2;
repeated RubyDiff callParams = 3;
RubyDiff callBlock = 4;
}
message LessThan {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message LessThanEqual {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message GreaterThan {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message GreaterThanEqual {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Equal {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message StrictEqual {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Comparison {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Enumeration {
RubyDiff enumerationStart = 1;
RubyDiff enumerationEnd = 2;
RubyDiff enumerationStep = 3;
}
message Matches {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message NotMatches {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message MemberAccess {
RubyDiff lhs = 1;
bytes rhs = 2;
}
message ScopeResolution {
repeated RubyDiff scopes = 1;
}
message Subscript {
RubyDiff lhs = 1;
repeated RubyDiff rhs = 2;
}
message Member {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message This { }
message Array {
repeated RubyDiff arrayElements = 1;
}
message Boolean {
bool booleanContent = 1;
}
message Character {
string characterContent = 1;
}
message Complex {
string value = 1;
}
message EscapeSequence {
string value = 1;
}
message Float {
string floatContent = 1;
}
message Hash {
repeated RubyDiff hashElements = 1;
}
message Integer {
string integerContent = 1;
}
message InterpolationElement {
RubyDiff interpolationBody = 1;
}
message KeyValue {
RubyDiff key = 1;
RubyDiff value = 2;
}
message Null { }
message Rational {
string value = 1;
}
message Regex {
string regexContent = 1;
}
message String {
repeated RubyDiff stringElements = 1;
}
message Symbol {
repeated RubyDiff symbolElements = 1;
}
message SymbolElement {
string symbolContent = 1;
}
message TextElement {
string textElementContent = 1;
}
message Assignment {
repeated RubyDiff assignmentContext = 1;
RubyDiff assignmentTarget = 2;
RubyDiff assignmentValue = 3;
}
message Break {
RubyDiff value = 1;
}
message Catch {
RubyDiff catchException = 1;
RubyDiff catchBody = 2;
}
message Continue {
RubyDiff value = 1;
}
message Else {
RubyDiff elseCondition = 1;
RubyDiff elseBody = 2;
}
message Finally {
RubyDiff value = 1;
}
message ForEach {
RubyDiff forEachBinding = 1;
RubyDiff forEachSubject = 2;
RubyDiff forEachBody = 3;
}
message If {
RubyDiff ifCondition = 1;
RubyDiff ifThenBody = 2;
RubyDiff ifElseBody = 3;
}
message Match {
RubyDiff matchSubject = 1;
RubyDiff matchPatterns = 2;
}
message Pattern {
RubyDiff value = 1;
RubyDiff patternBody = 2;
}
message Retry {
RubyDiff value = 1;
}
message Return {
RubyDiff value = 1;
}
message ScopeEntry {
repeated RubyDiff terms = 1;
}
message ScopeExit {
repeated RubyDiff terms = 1;
}
message Statements {
repeated RubyDiff statements = 1;
}
message Try {
RubyDiff tryBody = 1;
repeated RubyDiff tryCatch = 2;
}
message While {
RubyDiff whileCondition = 1;
RubyDiff whileBody = 2;
}
message Yield {
RubyDiff value = 1;
}
message Context {
repeated RubyDiff contextTerms = 1;
RubyDiff contextSubject = 2;
@ -513,10 +468,55 @@ message Context {
message Empty { }
message Error {
repeated ErrorSite errorCallStack = 1;
repeated string errorExpected = 2;
string errorActual = 3;
repeated RubyDiff errorChildren = 4;
}
message Identifier {
bytes name = 1;
}
message Class {
RubyDiff classIdentifier = 1;
repeated RubyDiff classSuperClass = 2;
RubyDiff classBody = 3;
}
message Load {
RubyDiff loadPath = 1;
repeated RubyDiff loadWrap = 2;
}
message LowPrecedenceAnd {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message LowPrecedenceOr {
RubyDiff lhs = 1;
RubyDiff rhs = 2;
}
message Module {
RubyDiff moduleIdentifier = 1;
repeated RubyDiff moduleStatements = 2;
}
message Require {
bool requireRelative = 1;
RubyDiff requirePath = 2;
}
message Send {
repeated RubyDiff sendReceiver = 1;
repeated RubyDiff sendSelector = 2;
repeated RubyDiff sendArgs = 3;
repeated RubyDiff sendBlock = 4;
}
message List {
repeated RubyDiff listContent = 1;
}

View File

@ -12,391 +12,6 @@ message RubyTerm {
RubySyntax syntax = 1;
}
message Comment {
string commentContent = 1;
}
message Function {
repeated RubyTerm functionContext = 1;
RubyTerm functionName = 2;
repeated RubyTerm functionParameters = 3;
RubyTerm functionBody = 4;
}
message Method {
repeated RubyTerm methodContext = 1;
RubyTerm methodReceiver = 2;
RubyTerm methodName = 3;
repeated RubyTerm methodParameters = 4;
RubyTerm methodBody = 5;
}
message File { }
message Line { }
message Error {
repeated ErrorSite errorCallStack = 1;
repeated string errorExpected = 2;
string errorActual = 3;
repeated RubyTerm errorChildren = 4;
}
message And {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message BAnd {
RubyTerm left = 1;
RubyTerm right = 2;
}
message BOr {
RubyTerm left = 1;
RubyTerm right = 2;
}
message BXOr {
RubyTerm left = 1;
RubyTerm right = 2;
}
message Call {
repeated RubyTerm callContext = 1;
RubyTerm callFunction = 2;
repeated RubyTerm callParams = 3;
RubyTerm callBlock = 4;
}
message Comparison {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Complement {
RubyTerm value = 1;
}
message DividedBy {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Enumeration {
RubyTerm enumerationStart = 1;
RubyTerm enumerationEnd = 2;
RubyTerm enumerationStep = 3;
}
message Equal {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message FloorDivision {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message GreaterThan {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message GreaterThanEqual {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message LShift {
RubyTerm left = 1;
RubyTerm right = 2;
}
message LessThan {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message LessThanEqual {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Matches {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Member {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message MemberAccess {
RubyTerm lhs = 1;
bytes rhs = 2;
}
message Minus {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Modulo {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Negate {
RubyTerm value = 1;
}
message Not {
RubyTerm value = 1;
}
message NotMatches {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Or {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Plus {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Power {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message RShift {
RubyTerm left = 1;
RubyTerm right = 2;
}
message ScopeResolution {
repeated RubyTerm scopes = 1;
}
message StrictEqual {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Subscript {
RubyTerm lhs = 1;
repeated RubyTerm rhs = 2;
}
message Times {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message XOr {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message This { }
message Array {
repeated RubyTerm arrayElements = 1;
}
message Boolean {
bool booleanContent = 1;
}
message Character {
string characterContent = 1;
}
message Complex {
string value = 1;
}
message EscapeSequence {
string value = 1;
}
message Float {
string floatContent = 1;
}
message Hash {
repeated RubyTerm hashElements = 1;
}
message Integer {
string integerContent = 1;
}
message InterpolationElement {
RubyTerm interpolationBody = 1;
}
message KeyValue {
RubyTerm key = 1;
RubyTerm value = 2;
}
message Null { }
message Rational {
string value = 1;
}
message Regex {
string regexContent = 1;
}
message String {
repeated RubyTerm stringElements = 1;
}
message Symbol {
repeated RubyTerm symbolElements = 1;
}
message SymbolElement {
string symbolContent = 1;
}
message TextElement {
string textElementContent = 1;
}
message Class {
RubyTerm classIdentifier = 1;
repeated RubyTerm classSuperClass = 2;
RubyTerm classBody = 3;
}
message Load {
RubyTerm loadPath = 1;
repeated RubyTerm loadWrap = 2;
}
message LowPrecedenceAnd {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message LowPrecedenceOr {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Module {
RubyTerm moduleIdentifier = 1;
repeated RubyTerm moduleStatements = 2;
}
message Require {
bool requireRelative = 1;
RubyTerm requirePath = 2;
}
message Send {
repeated RubyTerm sendReceiver = 1;
repeated RubyTerm sendSelector = 2;
repeated RubyTerm sendArgs = 3;
repeated RubyTerm sendBlock = 4;
}
message Assignment {
repeated RubyTerm assignmentContext = 1;
RubyTerm assignmentTarget = 2;
RubyTerm assignmentValue = 3;
}
message Break {
RubyTerm value = 1;
}
message Catch {
RubyTerm catchException = 1;
RubyTerm catchBody = 2;
}
message Continue {
RubyTerm value = 1;
}
message Else {
RubyTerm elseCondition = 1;
RubyTerm elseBody = 2;
}
message Finally {
RubyTerm value = 1;
}
message ForEach {
RubyTerm forEachBinding = 1;
RubyTerm forEachSubject = 2;
RubyTerm forEachBody = 3;
}
message If {
RubyTerm ifCondition = 1;
RubyTerm ifThenBody = 2;
RubyTerm ifElseBody = 3;
}
message Match {
RubyTerm matchSubject = 1;
RubyTerm matchPatterns = 2;
}
message Pattern {
RubyTerm value = 1;
RubyTerm patternBody = 2;
}
message Retry {
RubyTerm value = 1;
}
message Return {
RubyTerm value = 1;
}
message ScopeEntry {
repeated RubyTerm terms = 1;
}
message ScopeExit {
repeated RubyTerm terms = 1;
}
message Statements {
repeated RubyTerm statements = 1;
}
message Try {
RubyTerm tryBody = 1;
repeated RubyTerm tryCatch = 2;
}
message While {
RubyTerm whileCondition = 1;
RubyTerm whileBody = 2;
}
message Yield {
RubyTerm value = 1;
}
message RubySyntax {
oneof syntax {
Comment comment = 1;
@ -488,6 +103,346 @@ message RubySyntax {
}
}
message Comment {
string commentContent = 1;
}
message Function {
repeated RubyTerm functionContext = 1;
RubyTerm functionName = 2;
repeated RubyTerm functionParameters = 3;
RubyTerm functionBody = 4;
}
message Method {
repeated RubyTerm methodContext = 1;
RubyTerm methodReceiver = 2;
RubyTerm methodName = 3;
repeated RubyTerm methodParameters = 4;
RubyTerm methodBody = 5;
}
message File { }
message Line { }
message Plus {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Minus {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Times {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message DividedBy {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Modulo {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Power {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Negate {
RubyTerm value = 1;
}
message FloorDivision {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message BAnd {
RubyTerm left = 1;
RubyTerm right = 2;
}
message BOr {
RubyTerm left = 1;
RubyTerm right = 2;
}
message BXOr {
RubyTerm left = 1;
RubyTerm right = 2;
}
message LShift {
RubyTerm left = 1;
RubyTerm right = 2;
}
message RShift {
RubyTerm left = 1;
RubyTerm right = 2;
}
message Complement {
RubyTerm value = 1;
}
message And {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Not {
RubyTerm value = 1;
}
message Or {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message XOr {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Call {
repeated RubyTerm callContext = 1;
RubyTerm callFunction = 2;
repeated RubyTerm callParams = 3;
RubyTerm callBlock = 4;
}
message LessThan {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message LessThanEqual {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message GreaterThan {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message GreaterThanEqual {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Equal {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message StrictEqual {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Comparison {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Enumeration {
RubyTerm enumerationStart = 1;
RubyTerm enumerationEnd = 2;
RubyTerm enumerationStep = 3;
}
message Matches {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message NotMatches {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message MemberAccess {
RubyTerm lhs = 1;
bytes rhs = 2;
}
message ScopeResolution {
repeated RubyTerm scopes = 1;
}
message Subscript {
RubyTerm lhs = 1;
repeated RubyTerm rhs = 2;
}
message Member {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message This { }
message Array {
repeated RubyTerm arrayElements = 1;
}
message Boolean {
bool booleanContent = 1;
}
message Character {
string characterContent = 1;
}
message Complex {
string value = 1;
}
message EscapeSequence {
string value = 1;
}
message Float {
string floatContent = 1;
}
message Hash {
repeated RubyTerm hashElements = 1;
}
message Integer {
string integerContent = 1;
}
message InterpolationElement {
RubyTerm interpolationBody = 1;
}
message KeyValue {
RubyTerm key = 1;
RubyTerm value = 2;
}
message Null { }
message Rational {
string value = 1;
}
message Regex {
string regexContent = 1;
}
message String {
repeated RubyTerm stringElements = 1;
}
message Symbol {
repeated RubyTerm symbolElements = 1;
}
message SymbolElement {
string symbolContent = 1;
}
message TextElement {
string textElementContent = 1;
}
message Assignment {
repeated RubyTerm assignmentContext = 1;
RubyTerm assignmentTarget = 2;
RubyTerm assignmentValue = 3;
}
message Break {
RubyTerm value = 1;
}
message Catch {
RubyTerm catchException = 1;
RubyTerm catchBody = 2;
}
message Continue {
RubyTerm value = 1;
}
message Else {
RubyTerm elseCondition = 1;
RubyTerm elseBody = 2;
}
message Finally {
RubyTerm value = 1;
}
message ForEach {
RubyTerm forEachBinding = 1;
RubyTerm forEachSubject = 2;
RubyTerm forEachBody = 3;
}
message If {
RubyTerm ifCondition = 1;
RubyTerm ifThenBody = 2;
RubyTerm ifElseBody = 3;
}
message Match {
RubyTerm matchSubject = 1;
RubyTerm matchPatterns = 2;
}
message Pattern {
RubyTerm value = 1;
RubyTerm patternBody = 2;
}
message Retry {
RubyTerm value = 1;
}
message Return {
RubyTerm value = 1;
}
message ScopeEntry {
repeated RubyTerm terms = 1;
}
message ScopeExit {
repeated RubyTerm terms = 1;
}
message Statements {
repeated RubyTerm statements = 1;
}
message Try {
RubyTerm tryBody = 1;
repeated RubyTerm tryCatch = 2;
}
message While {
RubyTerm whileCondition = 1;
RubyTerm whileBody = 2;
}
message Yield {
RubyTerm value = 1;
}
message Context {
repeated RubyTerm contextTerms = 1;
RubyTerm contextSubject = 2;
@ -495,10 +450,55 @@ message Context {
message Empty { }
message Error {
repeated ErrorSite errorCallStack = 1;
repeated string errorExpected = 2;
string errorActual = 3;
repeated RubyTerm errorChildren = 4;
}
message Identifier {
bytes name = 1;
}
message Class {
RubyTerm classIdentifier = 1;
repeated RubyTerm classSuperClass = 2;
RubyTerm classBody = 3;
}
message Load {
RubyTerm loadPath = 1;
repeated RubyTerm loadWrap = 2;
}
message LowPrecedenceAnd {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message LowPrecedenceOr {
RubyTerm lhs = 1;
RubyTerm rhs = 2;
}
message Module {
RubyTerm moduleIdentifier = 1;
repeated RubyTerm moduleStatements = 2;
}
message Require {
bool requireRelative = 1;
RubyTerm requirePath = 2;
}
message Send {
repeated RubyTerm sendReceiver = 1;
repeated RubyTerm sendSelector = 2;
repeated RubyTerm sendArgs = 3;
repeated RubyTerm sendBlock = 4;
}
message List {
repeated RubyTerm listContent = 1;
}

View File

@ -30,22 +30,6 @@ message TypeScriptDiff {
}
}
message Alias {
bytes aliasValue = 1;
bytes aliasName = 2;
}
message ImportPath {
string unPath = 1;
IsRelative pathIsRelative = 2;
}
enum IsRelative {
Unknown = 0;
Relative = 1;
NonRelative = 2;
}
message TypeScriptSyntax {
oneof syntax {
Comment comment = 1;
@ -819,10 +803,6 @@ message AbstractClass {
TypeScriptDiff classBody = 4;
}
message ExtendsClause {
repeated TypeScriptDiff extendsClauses = 1;
}
message ImplementsClause {
repeated TypeScriptDiff implementsClauseTypes = 1;
}
@ -898,6 +878,10 @@ message EnumDeclaration {
repeated TypeScriptDiff enumDeclarationBody = 2;
}
message ExtendsClause {
repeated TypeScriptDiff extendsClauses = 1;
}
message AmbientFunction {
repeated TypeScriptDiff ambientFunctionContext = 1;
TypeScriptDiff ambientFunctionIdentifier = 2;
@ -980,3 +964,19 @@ message JavaScriptRequire {
message List {
repeated TypeScriptDiff 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;
}

View File

@ -12,22 +12,6 @@ message TypeScriptTerm {
TypeScriptSyntax syntax = 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;
}
message TypeScriptSyntax {
oneof syntax {
Comment comment = 1;
@ -801,10 +785,6 @@ message AbstractClass {
TypeScriptTerm classBody = 4;
}
message ExtendsClause {
repeated TypeScriptTerm extendsClauses = 1;
}
message ImplementsClause {
repeated TypeScriptTerm implementsClauseTypes = 1;
}
@ -880,6 +860,10 @@ message EnumDeclaration {
repeated TypeScriptTerm enumDeclarationBody = 2;
}
message ExtendsClause {
repeated TypeScriptTerm extendsClauses = 1;
}
message AmbientFunction {
repeated TypeScriptTerm ambientFunctionContext = 1;
TypeScriptTerm ambientFunctionIdentifier = 2;
@ -962,3 +946,19 @@ message JavaScriptRequire {
message List {
repeated TypeScriptTerm 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;
}