1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Remove extendsclause and add alias

This commit is contained in:
joshvera 2018-07-02 18:15:21 -04:00
parent 46f6583504
commit 422ddba68f
2 changed files with 39 additions and 40 deletions

View File

@ -130,43 +130,42 @@ message TypeScriptSyntax { oneof syntax {Comment comment = 1;
Undefined undefined = 126;
ClassHeritage classHeritage = 127;
AbstractClass abstractClass = 128;
ExtendsClause extendsClause = 129;
ImplementsClause implementsClause = 130;
JsxElement jsxElement = 131;
JsxSelfClosingElement jsxSelfClosingElement = 132;
JsxOpeningElement jsxOpeningElement = 133;
JsxText jsxText = 134;
JsxClosingElement jsxClosingElement = 135;
JsxExpression jsxExpression = 136;
JsxAttribute jsxAttribute = 137;
JsxFragment jsxFragment = 138;
JsxNamespaceName jsxNamespaceName = 139;
OptionalParameter optionalParameter = 140;
RequiredParameter requiredParameter = 141;
RestParameter restParameter = 142;
PropertySignature propertySignature = 143;
AmbientDeclaration ambientDeclaration = 144;
EnumDeclaration enumDeclaration = 145;
ExtendsClause extendsClause = 129;
AmbientFunction ambientFunction = 147;
ImportRequireClause importRequireClause = 148;
ImportClause importClause = 149;
LabeledStatement labeledStatement = 150;
Annotation annotation = 151;
With with = 152;
ForOf forOf = 153;
This this = 154;
Update update = 155;
ComputedPropertyName computedPropertyName = 156;
Decorator decorator = 157;
Import import = 158;
QualifiedAliasedImport qualifiedAliasedImport = 159;
SideEffectImport sideEffectImport = 160;
DefaultExport defaultExport = 161;
QualifiedExport qualifiedExport = 162;
QualifiedExportFrom qualifiedExportFrom = 163;
JavaScriptRequire javaScriptRequire = 164;
List list = 165;}
ImplementsClause implementsClause = 129;
JsxElement jsxElement = 130;
JsxSelfClosingElement jsxSelfClosingElement = 131;
JsxOpeningElement jsxOpeningElement = 132;
JsxText jsxText = 133;
JsxClosingElement jsxClosingElement = 134;
JsxExpression jsxExpression = 135;
JsxAttribute jsxAttribute = 136;
JsxFragment jsxFragment = 137;
JsxNamespaceName jsxNamespaceName = 138;
OptionalParameter optionalParameter = 139;
RequiredParameter requiredParameter = 140;
RestParameter restParameter = 141;
PropertySignature propertySignature = 142;
AmbientDeclaration ambientDeclaration = 143;
EnumDeclaration enumDeclaration = 144;
ExtendsClause extendsClause = 145;
AmbientFunction ambientFunction = 146;
ImportRequireClause importRequireClause = 147;
ImportClause importClause = 148;
LabeledStatement labeledStatement = 149;
Annotation annotation = 150;
With with = 151;
ForOf forOf = 152;
This this = 153;
Update update = 154;
ComputedPropertyName computedPropertyName = 155;
Decorator decorator = 156;
Import import = 157;
QualifiedAliasedImport qualifiedAliasedImport = 158;
SideEffectImport sideEffectImport = 159;
DefaultExport defaultExport = 160;
QualifiedExport qualifiedExport = 161;
QualifiedExportFrom qualifiedExportFrom = 162;
JavaScriptRequire javaScriptRequire = 163;
List list = 164;}
}
message Comment { string commentContent = 1;
}
@ -567,11 +566,12 @@ message PropertySignature { repeated TypeScriptTerm modifiers = 1;
}
message AmbientDeclaration { TypeScriptTerm ambientDeclarationBody = 1;
}
message Alias { bytes aliasValue = 1;
bytes aliasName = 2;
}
message EnumDeclaration { TypeScriptTerm enumDeclarationIdentifier = 1;
repeated TypeScriptTerm enumDeclarationBody = 2;
}
message ExtendsClause { repeated TypeScriptTerm extendsClauses = 1;
}
message AmbientFunction { repeated TypeScriptTerm ambientFunctionContext = 1;
TypeScriptTerm ambientFunctionIdentifier = 2;
repeated TypeScriptTerm ambientFunctionParameters = 3;

View File

@ -167,7 +167,6 @@ type Syntax = '[
, TypeScript.Syntax.Undefined
, TypeScript.Syntax.ClassHeritage
, TypeScript.Syntax.AbstractClass
, TypeScript.Syntax.ExtendsClause
, TypeScript.Syntax.ImplementsClause
, TypeScript.Syntax.JsxElement
, TypeScript.Syntax.JsxSelfClosingElement