#[derive(Clone, Debug, PartialEq, FromPrimitive)]
pub enum Typescript {
End = 0,
Identifier = 1,
HashBangLine = 2,
Export = 3,
STAR = 4,
Default = 5,
EQ = 6,
As = 7,
Namespace = 8,
LBRACE = 9,
COMMA = 10,
RBRACE = 11,
Type2 = 12,
Typeof = 13,
Import2 = 14,
From = 15,
Var = 16,
Let = 17,
Const = 18,
BANG = 19,
Else = 20,
If = 21,
Switch = 22,
For = 23,
LPAREN = 24,
RPAREN = 25,
Await = 26,
In = 27,
Of = 28,
While = 29,
Do = 30,
Try = 31,
With = 32,
Break = 33,
Continue = 34,
Debugger = 35,
Return = 36,
Throw = 37,
SEMI = 38,
COLON = 39,
Case = 40,
Catch = 41,
Finally = 42,
Yield = 43,
LBRACK = 44,
RBRACK = 45,
LT = 46,
GT = 47,
SLASH = 48,
DOT = 49,
Class2 = 50,
Async = 51,
Function2 = 52,
EQGT = 53,
QMARKDOT = 54,
New = 55,
PLUSEQ = 56,
DASHEQ = 57,
STAREQ = 58,
SLASHEQ = 59,
PERCENTEQ = 60,
CARETEQ = 61,
AMPEQ = 62,
PIPEEQ = 63,
GTGTEQ = 64,
GTGTGTEQ = 65,
LTLTEQ = 66,
STARSTAREQ = 67,
AMPAMPEQ = 68,
PIPEPIPEEQ = 69,
QMARKQMARKEQ = 70,
DOTDOTDOT = 71,
QMARK = 72,
AMPAMP = 73,
PIPEPIPE = 74,
GTGT = 75,
GTGTGT = 76,
LTLT = 77,
AMP = 78,
CARET = 79,
PIPE = 80,
PLUS = 81,
DASH = 82,
PERCENT = 83,
STARSTAR = 84,
LTEQ = 85,
EQEQ = 86,
EQEQEQ = 87,
BANGEQ = 88,
BANGEQEQ = 89,
GTEQ = 90,
QMARKQMARK = 91,
Instanceof = 92,
TILDE = 93,
Void = 94,
Delete = 95,
PLUSPLUS = 96,
DASHDASH = 97,
DQUOTE = 98,
StringToken1 = 99,
SQUOTE = 100,
StringToken2 = 101,
EscapeSequence = 102,
Comment = 103,
BQUOTE = 104,
DOLLARLBRACE = 105,
SLASH2 = 106,
RegexPattern = 107,
RegexFlags = 108,
Number = 109,
Target = 110,
This = 111,
Super = 112,
True = 113,
False = 114,
Null = 115,
Undefined = 116,
AT = 117,
Declare = 118,
Static = 119,
Readonly = 120,
Abstract = 121,
Get = 122,
Set = 123,
Public = 124,
Private = 125,
Protected = 126,
Module3 = 127,
Any = 128,
Number2 = 129,
Boolean = 130,
String2 = 131,
Symbol = 132,
Require = 133,
Implements = 134,
Global = 135,
Interface = 136,
Extends = 137,
Enum = 138,
DASHQMARKCOLON = 139,
QMARKCOLON = 140,
Asserts2 = 141,
Infer = 142,
Is = 143,
Keyof = 144,
LBRACEPIPE = 145,
PIPERBRACE = 146,
AutomaticSemicolon = 147,
TemplateChars = 148,
FunctionSignatureAutomaticSemicolon = 149,
Program = 150,
ExportStatement = 151,
ExportClause = 152,
ExportSpecifier = 153,
Declaration = 154,
Import = 155,
ImportStatement = 156,
ImportClause = 157,
FromClause = 158,
NamespaceImport = 159,
NamedImports = 160,
ExpressionStatement = 161,
VariableDeclaration = 162,
LexicalDeclaration = 163,
VariableDeclarator = 164,
StatementBlock = 165,
ElseClause = 166,
IfStatement = 167,
SwitchStatement = 168,
ForStatement = 169,
ForInStatement = 170,
ForHeader = 171,
WhileStatement = 172,
DoStatement = 173,
TryStatement = 174,
WithStatement = 175,
BreakStatement = 176,
ContinueStatement = 177,
DebuggerStatement = 178,
ReturnStatement = 179,
ThrowStatement = 180,
EmptyStatement = 181,
LabeledStatement = 182,
SwitchBody = 183,
SwitchCase = 184,
SwitchDefault = 185,
CatchClause = 186,
FinallyClause = 187,
ParenthesizedExpression = 188,
Expression = 189,
PrimaryExpression = 190,
YieldExpression = 191,
Object = 192,
ObjectPattern = 193,
AssignmentPattern = 194,
ObjectAssignmentPattern = 195,
Array = 196,
ArrayPattern = 197,
NestedIdentifier = 198,
Class = 199,
ClassDeclaration = 200,
ClassHeritage = 201,
Function = 202,
FunctionDeclaration = 203,
GeneratorFunction = 204,
GeneratorFunctionDeclaration = 205,
ArrowFunction = 206,
CallSignature = 207,
FormalParameter = 208,
CallExpression = 209,
NewExpression = 210,
AwaitExpression = 211,
MemberExpression = 212,
SubscriptExpression = 213,
AssignmentExpression = 214,
AugmentedAssignmentLhs = 215,
AugmentedAssignmentExpression = 216,
Initializer = 217,
DestructuringPattern = 218,
SpreadElement = 219,
TernaryExpression = 220,
BinaryExpression = 221,
UnaryExpression = 222,
UpdateExpression = 223,
SequenceExpression = 224,
String = 225,
TemplateString = 226,
TemplateSubstitution = 227,
Regex = 228,
MetaProperty = 229,
Arguments = 230,
Decorator = 231,
MemberExpression2 = 232,
CallExpression2 = 233,
ClassBody = 234,
PublicFieldDefinition = 235,
FormalParameters = 236,
Pattern = 237,
RestPattern = 238,
MethodDefinition = 239,
Pair = 240,
PairPattern = 241,
PropertyName = 242,
ComputedPropertyName = 243,
NonNullExpression = 244,
MethodSignature = 245,
AbstractMethodSignature = 246,
FunctionSignature = 247,
TypeAssertion = 248,
AsExpression = 249,
ImportRequireClause = 250,
ImplementsClause = 251,
AmbientDeclaration = 252,
AbstractClassDeclaration = 253,
Module = 254,
InternalModule = 255,
Module2 = 256,
ImportAlias = 257,
NestedTypeIdentifier = 258,
InterfaceDeclaration = 259,
ExtendsClause = 260,
EnumDeclaration = 261,
EnumBody = 262,
EnumAssignment = 263,
TypeAliasDeclaration = 264,
AccessibilityModifier = 265,
RequiredParameter = 266,
OptionalParameter = 267,
ParameterName = 268,
OmittingTypeAnnotation = 269,
OptingTypeAnnotation = 270,
TypeAnnotation = 271,
Asserts = 272,
Type = 273,
RequiredParameter2 = 274,
OptionalParameter2 = 275,
OptionalType = 276,
RestType = 277,
TupleTypeMember = 278,
ConstructorType = 279,
PrimaryType = 280,
InferType = 281,
ConditionalType = 282,
GenericType = 283,
TypePredicate = 284,
TypePredicateAnnotation = 285,
TypeQuery = 286,
IndexTypeQuery = 287,
LookupType = 288,
MappedTypeClause = 289,
LiteralType = 290,
UnaryExpression2 = 291,
ExistentialType = 292,
FlowMaybeType = 293,
ParenthesizedType = 294,
PredefinedType = 295,
TypeArguments = 296,
ObjectType = 297,
CallSignature2 = 298,
PropertySignature = 299,
TypeParameters = 300,
TypeParameter = 301,
DefaultType = 302,
Constraint = 303,
ConstructSignature = 304,
IndexSignature = 305,
ArrayType = 306,
TupleType = 307,
ReadonlyType = 308,
UnionType = 309,
IntersectionType = 310,
FunctionType = 311,
ProgramRepeat1 = 312,
ExportStatementRepeat1 = 313,
ExportClauseRepeat1 = 314,
NamedImportsRepeat1 = 315,
VariableDeclarationRepeat1 = 316,
SwitchBodyRepeat1 = 317,
ObjectRepeat1 = 318,
ObjectPatternRepeat1 = 319,
ArrayRepeat1 = 320,
ArrayPatternRepeat1 = 321,
StringRepeat1 = 322,
StringRepeat2 = 323,
TemplateStringRepeat1 = 324,
ClassBodyRepeat1 = 325,
FormalParametersRepeat1 = 326,
ImplementsClauseRepeat1 = 327,
ExtendsClauseRepeat1 = 328,
EnumBodyRepeat1 = 329,
ObjectTypeRepeat1 = 330,
TypeParametersRepeat1 = 331,
TupleTypeRepeat1 = 332,
ImportSpecifier = 333,
PropertyIdentifier = 334,
ShorthandPropertyIdentifier = 335,
ShorthandPropertyIdentifierPattern = 336,
StatementIdentifier = 337,
TypeIdentifier = 338,
Error = 339,
}
impl From<Typescript> for &'static str {
#[inline(always)]
fn from(tok: Typescript) -> Self {
match tok {
Typescript::End => "end",
Typescript::Identifier => "identifier",
Typescript::HashBangLine => "hash_bang_line",
Typescript::Export => "export",
Typescript::STAR => "*",
Typescript::Default => "default",
Typescript::EQ => "=",
Typescript::As => "as",
Typescript::Namespace => "namespace",
Typescript::LBRACE => "{",
Typescript::COMMA => ",",
Typescript::RBRACE => "}",
Typescript::Type2 => "type",
Typescript::Typeof => "typeof",
Typescript::Import2 => "import",
Typescript::From => "from",
Typescript::Var => "var",
Typescript::Let => "let",
Typescript::Const => "const",
Typescript::BANG => "!",
Typescript::Else => "else",
Typescript::If => "if",
Typescript::Switch => "switch",
Typescript::For => "for",
Typescript::LPAREN => "(",
Typescript::RPAREN => ")",
Typescript::Await => "await",
Typescript::In => "in",
Typescript::Of => "of",
Typescript::While => "while",
Typescript::Do => "do",
Typescript::Try => "try",
Typescript::With => "with",
Typescript::Break => "break",
Typescript::Continue => "continue",
Typescript::Debugger => "debugger",
Typescript::Return => "return",
Typescript::Throw => "throw",
Typescript::SEMI => ";",
Typescript::COLON => ":",
Typescript::Case => "case",
Typescript::Catch => "catch",
Typescript::Finally => "finally",
Typescript::Yield => "yield",
Typescript::LBRACK => "[",
Typescript::RBRACK => "]",
Typescript::LT => "<",
Typescript::GT => ">",
Typescript::SLASH => "/",
Typescript::DOT => ".",
Typescript::Class2 => "class",
Typescript::Async => "async",
Typescript::Function2 => "function",
Typescript::EQGT => "=>",
Typescript::QMARKDOT => "?.",
Typescript::New => "new",
Typescript::PLUSEQ => "+=",
Typescript::DASHEQ => "-=",
Typescript::STAREQ => "*=",
Typescript::SLASHEQ => "/=",
Typescript::PERCENTEQ => "%=",
Typescript::CARETEQ => "^=",
Typescript::AMPEQ => "&=",
Typescript::PIPEEQ => "|=",
Typescript::GTGTEQ => ">>=",
Typescript::GTGTGTEQ => ">>>=",
Typescript::LTLTEQ => "<<=",
Typescript::STARSTAREQ => "**=",
Typescript::AMPAMPEQ => "&&=",
Typescript::PIPEPIPEEQ => "||=",
Typescript::QMARKQMARKEQ => "??=",
Typescript::DOTDOTDOT => "...",
Typescript::QMARK => "?",
Typescript::AMPAMP => "&&",
Typescript::PIPEPIPE => "||",
Typescript::GTGT => ">>",
Typescript::GTGTGT => ">>>",
Typescript::LTLT => "<<",
Typescript::AMP => "&",
Typescript::CARET => "^",
Typescript::PIPE => "|",
Typescript::PLUS => "+",
Typescript::DASH => "-",
Typescript::PERCENT => "%",
Typescript::STARSTAR => "**",
Typescript::LTEQ => "<=",
Typescript::EQEQ => "==",
Typescript::EQEQEQ => "===",
Typescript::BANGEQ => "!=",
Typescript::BANGEQEQ => "!==",
Typescript::GTEQ => ">=",
Typescript::QMARKQMARK => "??",
Typescript::Instanceof => "instanceof",
Typescript::TILDE => "~",
Typescript::Void => "void",
Typescript::Delete => "delete",
Typescript::PLUSPLUS => "++",
Typescript::DASHDASH => "--",
Typescript::DQUOTE => "\"",
Typescript::StringToken1 => "string_token1",
Typescript::SQUOTE => "'",
Typescript::StringToken2 => "string_token2",
Typescript::EscapeSequence => "escape_sequence",
Typescript::Comment => "comment",
Typescript::BQUOTE => "`",
Typescript::DOLLARLBRACE => "${",
Typescript::SLASH2 => "/",
Typescript::RegexPattern => "regex_pattern",
Typescript::RegexFlags => "regex_flags",
Typescript::Number => "number",
Typescript::Target => "target",
Typescript::This => "this",
Typescript::Super => "super",
Typescript::True => "true",
Typescript::False => "false",
Typescript::Null => "null",
Typescript::Undefined => "undefined",
Typescript::AT => "@",
Typescript::Declare => "declare",
Typescript::Static => "static",
Typescript::Readonly => "readonly",
Typescript::Abstract => "abstract",
Typescript::Get => "get",
Typescript::Set => "set",
Typescript::Public => "public",
Typescript::Private => "private",
Typescript::Protected => "protected",
Typescript::Module3 => "module",
Typescript::Any => "any",
Typescript::Number2 => "number",
Typescript::Boolean => "boolean",
Typescript::String2 => "string",
Typescript::Symbol => "symbol",
Typescript::Require => "require",
Typescript::Implements => "implements",
Typescript::Global => "global",
Typescript::Interface => "interface",
Typescript::Extends => "extends",
Typescript::Enum => "enum",
Typescript::DASHQMARKCOLON => "-?:",
Typescript::QMARKCOLON => "?:",
Typescript::Asserts2 => "asserts",
Typescript::Infer => "infer",
Typescript::Is => "is",
Typescript::Keyof => "keyof",
Typescript::LBRACEPIPE => "{|",
Typescript::PIPERBRACE => "|}",
Typescript::AutomaticSemicolon => "_automatic_semicolon",
Typescript::TemplateChars => "_template_chars",
Typescript::FunctionSignatureAutomaticSemicolon => {
"_function_signature_automatic_semicolon"
}
Typescript::Program => "program",
Typescript::ExportStatement => "export_statement",
Typescript::ExportClause => "export_clause",
Typescript::ExportSpecifier => "export_specifier",
Typescript::Declaration => "declaration",
Typescript::Import => "import",
Typescript::ImportStatement => "import_statement",
Typescript::ImportClause => "import_clause",
Typescript::FromClause => "_from_clause",
Typescript::NamespaceImport => "namespace_import",
Typescript::NamedImports => "named_imports",
Typescript::ExpressionStatement => "expression_statement",
Typescript::VariableDeclaration => "variable_declaration",
Typescript::LexicalDeclaration => "lexical_declaration",
Typescript::VariableDeclarator => "variable_declarator",
Typescript::StatementBlock => "statement_block",
Typescript::ElseClause => "else_clause",
Typescript::IfStatement => "if_statement",
Typescript::SwitchStatement => "switch_statement",
Typescript::ForStatement => "for_statement",
Typescript::ForInStatement => "for_in_statement",
Typescript::ForHeader => "_for_header",
Typescript::WhileStatement => "while_statement",
Typescript::DoStatement => "do_statement",
Typescript::TryStatement => "try_statement",
Typescript::WithStatement => "with_statement",
Typescript::BreakStatement => "break_statement",
Typescript::ContinueStatement => "continue_statement",
Typescript::DebuggerStatement => "debugger_statement",
Typescript::ReturnStatement => "return_statement",
Typescript::ThrowStatement => "throw_statement",
Typescript::EmptyStatement => "empty_statement",
Typescript::LabeledStatement => "labeled_statement",
Typescript::SwitchBody => "switch_body",
Typescript::SwitchCase => "switch_case",
Typescript::SwitchDefault => "switch_default",
Typescript::CatchClause => "catch_clause",
Typescript::FinallyClause => "finally_clause",
Typescript::ParenthesizedExpression => "parenthesized_expression",
Typescript::Expression => "expression",
Typescript::PrimaryExpression => "primary_expression",
Typescript::YieldExpression => "yield_expression",
Typescript::Object => "object",
Typescript::ObjectPattern => "object_pattern",
Typescript::AssignmentPattern => "assignment_pattern",
Typescript::ObjectAssignmentPattern => "object_assignment_pattern",
Typescript::Array => "array",
Typescript::ArrayPattern => "array_pattern",
Typescript::NestedIdentifier => "nested_identifier",
Typescript::Class => "class",
Typescript::ClassDeclaration => "class_declaration",
Typescript::ClassHeritage => "class_heritage",
Typescript::Function => "function",
Typescript::FunctionDeclaration => "function_declaration",
Typescript::GeneratorFunction => "generator_function",
Typescript::GeneratorFunctionDeclaration => "generator_function_declaration",
Typescript::ArrowFunction => "arrow_function",
Typescript::CallSignature => "_call_signature",
Typescript::FormalParameter => "_formal_parameter",
Typescript::CallExpression => "call_expression",
Typescript::NewExpression => "new_expression",
Typescript::AwaitExpression => "await_expression",
Typescript::MemberExpression => "member_expression",
Typescript::SubscriptExpression => "subscript_expression",
Typescript::AssignmentExpression => "assignment_expression",
Typescript::AugmentedAssignmentLhs => "_augmented_assignment_lhs",
Typescript::AugmentedAssignmentExpression => "augmented_assignment_expression",
Typescript::Initializer => "_initializer",
Typescript::DestructuringPattern => "_destructuring_pattern",
Typescript::SpreadElement => "spread_element",
Typescript::TernaryExpression => "ternary_expression",
Typescript::BinaryExpression => "binary_expression",
Typescript::UnaryExpression => "unary_expression",
Typescript::UpdateExpression => "update_expression",
Typescript::SequenceExpression => "sequence_expression",
Typescript::String => "string",
Typescript::TemplateString => "template_string",
Typescript::TemplateSubstitution => "template_substitution",
Typescript::Regex => "regex",
Typescript::MetaProperty => "meta_property",
Typescript::Arguments => "arguments",
Typescript::Decorator => "decorator",
Typescript::MemberExpression2 => "member_expression",
Typescript::CallExpression2 => "call_expression",
Typescript::ClassBody => "class_body",
Typescript::PublicFieldDefinition => "public_field_definition",
Typescript::FormalParameters => "formal_parameters",
Typescript::Pattern => "pattern",
Typescript::RestPattern => "rest_pattern",
Typescript::MethodDefinition => "method_definition",
Typescript::Pair => "pair",
Typescript::PairPattern => "pair_pattern",
Typescript::PropertyName => "_property_name",
Typescript::ComputedPropertyName => "computed_property_name",
Typescript::NonNullExpression => "non_null_expression",
Typescript::MethodSignature => "method_signature",
Typescript::AbstractMethodSignature => "abstract_method_signature",
Typescript::FunctionSignature => "function_signature",
Typescript::TypeAssertion => "type_assertion",
Typescript::AsExpression => "as_expression",
Typescript::ImportRequireClause => "import_require_clause",
Typescript::ImplementsClause => "implements_clause",
Typescript::AmbientDeclaration => "ambient_declaration",
Typescript::AbstractClassDeclaration => "abstract_class_declaration",
Typescript::Module => "module",
Typescript::InternalModule => "internal_module",
Typescript::Module2 => "_module",
Typescript::ImportAlias => "import_alias",
Typescript::NestedTypeIdentifier => "nested_type_identifier",
Typescript::InterfaceDeclaration => "interface_declaration",
Typescript::ExtendsClause => "extends_clause",
Typescript::EnumDeclaration => "enum_declaration",
Typescript::EnumBody => "enum_body",
Typescript::EnumAssignment => "enum_assignment",
Typescript::TypeAliasDeclaration => "type_alias_declaration",
Typescript::AccessibilityModifier => "accessibility_modifier",
Typescript::RequiredParameter => "required_parameter",
Typescript::OptionalParameter => "optional_parameter",
Typescript::ParameterName => "_parameter_name",
Typescript::OmittingTypeAnnotation => "omitting_type_annotation",
Typescript::OptingTypeAnnotation => "opting_type_annotation",
Typescript::TypeAnnotation => "type_annotation",
Typescript::Asserts => "asserts",
Typescript::Type => "_type",
Typescript::RequiredParameter2 => "required_parameter",
Typescript::OptionalParameter2 => "optional_parameter",
Typescript::OptionalType => "optional_type",
Typescript::RestType => "rest_type",
Typescript::TupleTypeMember => "_tuple_type_member",
Typescript::ConstructorType => "constructor_type",
Typescript::PrimaryType => "_primary_type",
Typescript::InferType => "infer_type",
Typescript::ConditionalType => "conditional_type",
Typescript::GenericType => "generic_type",
Typescript::TypePredicate => "type_predicate",
Typescript::TypePredicateAnnotation => "type_predicate_annotation",
Typescript::TypeQuery => "type_query",
Typescript::IndexTypeQuery => "index_type_query",
Typescript::LookupType => "lookup_type",
Typescript::MappedTypeClause => "mapped_type_clause",
Typescript::LiteralType => "literal_type",
Typescript::UnaryExpression2 => "unary_expression",
Typescript::ExistentialType => "existential_type",
Typescript::FlowMaybeType => "flow_maybe_type",
Typescript::ParenthesizedType => "parenthesized_type",
Typescript::PredefinedType => "predefined_type",
Typescript::TypeArguments => "type_arguments",
Typescript::ObjectType => "object_type",
Typescript::CallSignature2 => "call_signature",
Typescript::PropertySignature => "property_signature",
Typescript::TypeParameters => "type_parameters",
Typescript::TypeParameter => "type_parameter",
Typescript::DefaultType => "default_type",
Typescript::Constraint => "constraint",
Typescript::ConstructSignature => "construct_signature",
Typescript::IndexSignature => "index_signature",
Typescript::ArrayType => "array_type",
Typescript::TupleType => "tuple_type",
Typescript::ReadonlyType => "readonly_type",
Typescript::UnionType => "union_type",
Typescript::IntersectionType => "intersection_type",
Typescript::FunctionType => "function_type",
Typescript::ProgramRepeat1 => "program_repeat1",
Typescript::ExportStatementRepeat1 => "export_statement_repeat1",
Typescript::ExportClauseRepeat1 => "export_clause_repeat1",
Typescript::NamedImportsRepeat1 => "named_imports_repeat1",
Typescript::VariableDeclarationRepeat1 => "variable_declaration_repeat1",
Typescript::SwitchBodyRepeat1 => "switch_body_repeat1",
Typescript::ObjectRepeat1 => "object_repeat1",
Typescript::ObjectPatternRepeat1 => "object_pattern_repeat1",
Typescript::ArrayRepeat1 => "array_repeat1",
Typescript::ArrayPatternRepeat1 => "array_pattern_repeat1",
Typescript::StringRepeat1 => "string_repeat1",
Typescript::StringRepeat2 => "string_repeat2",
Typescript::TemplateStringRepeat1 => "template_string_repeat1",
Typescript::ClassBodyRepeat1 => "class_body_repeat1",
Typescript::FormalParametersRepeat1 => "formal_parameters_repeat1",
Typescript::ImplementsClauseRepeat1 => "implements_clause_repeat1",
Typescript::ExtendsClauseRepeat1 => "extends_clause_repeat1",
Typescript::EnumBodyRepeat1 => "enum_body_repeat1",
Typescript::ObjectTypeRepeat1 => "object_type_repeat1",
Typescript::TypeParametersRepeat1 => "type_parameters_repeat1",
Typescript::TupleTypeRepeat1 => "tuple_type_repeat1",
Typescript::ImportSpecifier => "import_specifier",
Typescript::PropertyIdentifier => "property_identifier",
Typescript::ShorthandPropertyIdentifier => "shorthand_property_identifier",
Typescript::ShorthandPropertyIdentifierPattern => {
"shorthand_property_identifier_pattern"
}
Typescript::StatementIdentifier => "statement_identifier",
Typescript::TypeIdentifier => "type_identifier",
Typescript::Error => "ERROR",
}
}
}
impl From<u16> for Typescript {
#[inline(always)]
fn from(x: u16) -> Self {
num::FromPrimitive::from_u16(x).unwrap_or(Self::Error)
}
}
impl PartialEq<u16> for Typescript {
#[inline(always)]
fn eq(&self, x: &u16) -> bool {
*self == Typescript::from(*x)
}
}
impl PartialEq<Typescript> for u16 {
#[inline(always)]
fn eq(&self, x: &Typescript) -> bool {
*x == *self
}
}