Home | History | Annotate | Download | only in Parse

Lines Matching defs:LM

143   LexedMethod* LM = new LexedMethod(this, FnD);
144 getCurrentClass().LateParsedDeclarations.push_back(LM);
145 LM->TemplateScope = getCurScope()->isTemplateParamScope();
146 CachedTokens &Toks = LM->Toks;
301 void Parser::ParseLexedMethodDeclaration(LateParsedMethodDeclaration &LM) {
303 ParseScope TemplateScope(this, Scope::TemplateParamScope, LM.TemplateScope);
304 if (LM.TemplateScope)
305 Actions.ActOnReenterTemplateScope(getCurScope(), LM.Method);
308 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method);
314 for (unsigned I = 0, N = LM.DefaultArgs.size(); I != N; ++I) {
317 LM.DefaultArgs[I].Param);
319 if (CachedTokens *Toks = LM.DefaultArgs[I].Toks) {
338 LM.DefaultArgs[I].Param);
347 Actions.ActOnParamDefaultArgumentError(LM.DefaultArgs[I].Param);
353 Actions.ActOnParamDefaultArgument(LM.DefaultArgs[I].Param, EqualLoc,
366 LM.DefaultArgs[I].Toks = 0;
373 Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method);
394 void Parser::ParseLexedMethodDef(LexedMethod &LM) {
396 ParseScope TemplateScope(this, Scope::TemplateParamScope, LM.TemplateScope);
397 if (LM.TemplateScope)
398 Actions.ActOnReenterTemplateScope(getCurScope(), LM.D);
403 assert(!LM.Toks.empty() && "Empty body!");
406 LM.Toks.push_back(Tok);
407 PP.EnterTokenStream(LM.Toks.data(), LM.Toks.size(), true, false);
417 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D);
420 ParseFunctionTryBlock(LM.D, FnScope);
431 ParseConstructorInitializer(LM.D);
436 Actions.ActOnFinishFunctionBody(LM.D, 0);
442 Actions.ActOnDefaultCtorInitializers(LM.D);
444 ParseFunctionStatementBody(LM.D, FnScope);
447 if (LM.D) getFunctionDecl(LM.D)->setLateTemplateParsed(false);