Lines Matching refs:Result
87 TokenInfo Result;
88 Result.Range.Start = currentLocation();
91 Result.Kind = TokenInfo::TK_CodeCompletion;
92 Result.Text = StringRef(CodeCompletionLocation, 0);
94 return Result;
98 Result.Kind = TokenInfo::TK_Eof;
99 Result.Text = "";
100 return Result;
105 Result.Kind = TokenInfo::TK_Comma;
106 Result.Text = Code.substr(0, 1);
110 Result.Kind = TokenInfo::TK_Period;
111 Result.Text = Code.substr(0, 1);
115 Result.Kind = TokenInfo::TK_OpenParen;
116 Result.Text = Code.substr(0, 1);
120 Result.Kind = TokenInfo::TK_CloseParen;
121 Result.Text = Code.substr(0, 1);
128 consumeStringLiteral(&Result);
134 consumeUnsignedLiteral(&Result);
147 Result.Kind = TokenInfo::TK_CodeCompletion;
148 Result.Text = Code.substr(0, TokenLength);
150 return Result;
156 Result.Kind = TokenInfo::TK_Ident;
157 Result.Text = Code.substr(0, TokenLength);
160 Result.Kind = TokenInfo::TK_InvalidChar;
161 Result.Text = Code.substr(0, 1);
167 Result.Range.End = currentLocation();
168 return Result;
172 void consumeUnsignedLiteral(TokenInfo *Result) {
183 Result->Text = Code.substr(0, Length);
187 if (!Result->Text.getAsInteger(0, Value)) {
188 Result->Kind = TokenInfo::TK_Literal;
189 Result->Value = Value;
192 Range.Start = Result->Range.Start;
194 Error->addError(Range, Error->ET_ParserUnsignedError) << Result->Text;
195 Result->Kind = TokenInfo::TK_Error;
203 void consumeStringLiteral(TokenInfo *Result) {
216 Result->Kind = TokenInfo::TK_Literal;
217 Result->Text = Code.substr(0, Length + 1);
218 Result->Value = Code.substr(1, Length - 1).str();
227 Range.Start = Result->Range.Start;
230 Result->Kind = TokenInfo::TK_Error;
420 VariantMatcher Result = S->actOnMatcherExpression(
422 if (Result.isNull()) return false;
424 *Value = Result;
565 llvm::Optional<DynTypedMatcher> Result =
567 if (!Result.hasValue()) {
571 return Result;