MCPcopy Create free account
hub / github.com/catboost/catboost / TokenTypeToChar

Function TokenTypeToChar

library/cpp/yson/token.cpp:44–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 char TokenTypeToChar(ETokenType type) {
45 switch (type) {
46 case ETokenType::Semicolon:
47 return ';';
48 case ETokenType::Equals:
49 return '=';
50 case ETokenType::Hash:
51 return '#';
52 case ETokenType::LeftBracket:
53 return '[';
54 case ETokenType::RightBracket:
55 return ']';
56 case ETokenType::LeftBrace:
57 return '{';
58 case ETokenType::RightBrace:
59 return '}';
60 case ETokenType::LeftAngle:
61 return '<';
62 case ETokenType::RightAngle:
63 return '>';
64 case ETokenType::LeftParenthesis:
65 return '(';
66 case ETokenType::RightParenthesis:
67 return ')';
68 case ETokenType::Plus:
69 return '+';
70 case ETokenType::Colon:
71 return ':';
72 case ETokenType::Comma:
73 return ',';
74 default:
75 Y_ABORT("unreachable");
76 }
77 }
78
79 TString TokenTypeToString(ETokenType type) {
80 return TString(1, TokenTypeToChar(type));

Callers 7

EndNodeMethod · 0.85
BeginCollectionMethod · 0.85
CollectionItemMethod · 0.85
EndCollectionMethod · 0.85
OnEntityMethod · 0.85
OnKeyedItemMethod · 0.85
TokenTypeToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected