MCPcopy Create free account
hub / github.com/apache/trafficserver / Tag

Method Tag

lib/yamlcpp/src/tag.cpp:9–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8namespace YAML {
9Tag::Tag(const Token& token)
10 : type(static_cast<TYPE>(token.data)), handle{}, value{} {
11 switch (type) {
12 case VERBATIM:
13 value = token.value;
14 break;
15 case PRIMARY_HANDLE:
16 value = token.value;
17 break;
18 case SECONDARY_HANDLE:
19 value = token.value;
20 break;
21 case NAMED_HANDLE:
22 handle = token.value;
23 value = token.params[0];
24 break;
25 case NON_SPECIFIC:
26 break;
27 default:
28 assert(false);
29 }
30}
31
32std::string Tag::Translate(const Directives& directives) {
33 switch (type) {

Callers 7

TESTFunction · 0.80
TESTFunction · 0.80
try_deduce_typeFunction · 0.80
try_deduce_typeFunction · 0.80
parse_scalar_exprMethod · 0.80
parse_exprMethod · 0.80
test_txn_box.ccFile · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64