MCPcopy Create free account
hub / github.com/ablab/spades / attributeBegin

Method attributeBegin

ext/src/llvm/JSON.cpp:682–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682void llvm::json::OStream::attributeBegin(llvm::StringRef Key) {
683 assert(Stack.back().Ctx == Object);
684 if (Stack.back().HasValue)
685 OS << ',';
686 newline();
687 Stack.back().HasValue = true;
688 Stack.emplace_back();
689 Stack.back().Ctx = Singleton;
690 if (LLVM_LIKELY(isUTF8(Key))) {
691 quote(OS, Key);
692 } else {
693 assert(false && "Invalid UTF-8 in attribute key");
694 quote(OS, fixUTF8(Key));
695 }
696 OS.write(':');
697 if (IndentSize)
698 OS.write(' ');
699}
700
701void llvm::json::OStream::attributeEnd() {
702 assert(Stack.back().Ctx == Singleton);

Callers 1

writeMethod · 0.80

Calls 7

assertClass · 0.85
isUTF8Function · 0.85
quoteFunction · 0.85
fixUTF8Function · 0.85
backMethod · 0.45
emplace_backMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected