Home | History | Annotate | Download | only in Dynamic

Lines Matching refs:Result

88     TokenInfo Result;
89 Result.Range.Start = currentLocation();
92 Result.Kind = TokenInfo::TK_CodeCompletion;
93 Result.Text = StringRef(CodeCompletionLocation, 0);
95 return Result;
99 Result.Kind = TokenInfo::TK_Eof;
100 Result.Text = "";
101 return Result;
106 Result.Kind = TokenInfo::TK_Comma;
107 Result.Text = Code.substr(0, 1);
111 Result.Kind = TokenInfo::TK_Period;
112 Result.Text = Code.substr(0, 1);
116 Result.Kind = TokenInfo::TK_OpenParen;
117 Result.Text = Code.substr(0, 1);
121 Result.Kind = TokenInfo::TK_CloseParen;
122 Result.Text = Code.substr(0, 1);
129 consumeStringLiteral(&Result);
135 consumeUnsignedLiteral(&Result);
148 Result.Kind = TokenInfo::TK_CodeCompletion;
149 Result.Text = Code.substr(0, TokenLength);
151 return Result;
157 Result.Kind = TokenInfo::TK_Ident;
158 Result.Text = Code.substr(0, TokenLength);
161 Result.Kind = TokenInfo::TK_InvalidChar;
162 Result.Text = Code.substr(0, 1);
168 Result.Range.End = currentLocation();
169 return Result;
173 void consumeUnsignedLiteral(TokenInfo *Result) {
184 Result->Text = Code.substr(0, Length);
188 if (!Result->Text.getAsInteger(0, Value)) {
189 Result->Kind = TokenInfo::TK_Literal;
190 Result->Value = Value;
193 Range.Start = Result->Range.Start;
195 Error->addError(Range, Error->ET_ParserUnsignedError) << Result->Text;
196 Result->Kind = TokenInfo::TK_Error;
204 void consumeStringLiteral(TokenInfo *Result) {
217 Result->Kind = TokenInfo::TK_Literal;
218 Result->Text = Code.substr(0, Length + 1);
219 Result->Value = Code.substr(1, Length - 1);
228 Range.Start = Result->Range.Start;
231 Result->Kind = TokenInfo::TK_Error;
429 VariantMatcher Result = S->actOnMatcherExpression(
431 if (Result.isNull()) return false;
433 *Value = Result;
451 std::vector<MatcherCompletion> Result;
457 Result.emplace_back(Entry.getKey(), Decl, Specificity);
460 return Result;
602 llvm::Optional<DynTypedMatcher> Result =
604 if (!Result.hasValue()) {
608 return Result;