Lines Matching refs:Text
26 Annotations::Annotations(llvm::StringRef Text) { in Annotations() argument
27 auto Require = [Text](bool Assertion, const char *Msg) { in Annotations()
28 require(Assertion, Msg, Text); in Annotations()
34 Code.reserve(Text.size()); in Annotations()
35 while (!Text.empty()) { in Annotations()
36 if (Text.consume_front("^")) { in Annotations()
44 if (Text.consume_front("[[")) { in Annotations()
52 if (Text.consume_front("]]")) { in Annotations()
63 if (Text.consume_front("$")) { in Annotations()
65 Text.take_while([](char C) { return llvm::isAlnum(C) || C == '_'; }); in Annotations()
66 Text = Text.drop_front(Name->size()); in Annotations()
68 if (Text.consume_front("(")) { in Annotations()
69 Payload = Text.take_while([](char C) { return C != ')'; }); in Annotations()
70 Require(Text.size() > Payload->size(), "unterminated payload"); in Annotations()
71 Text = Text.drop_front(Payload->size() + 1); in Annotations()
76 Code.push_back(Text.front()); in Annotations()
77 Text = Text.drop_front(); in Annotations()