Lines Matching defs:pg
37 LReference::LReference(const ir::AstNode *node, PandaGen *pg, bool isDeclaration, ReferenceKind refKind,
39 : node_(node), pg_(pg), refKind_(refKind), res_(res), isDeclaration_(isDeclaration)
158 LReference LReference::CreateLRef(PandaGen *pg, const ir::AstNode *node, bool isDeclaration)
163 binder::ScopeFindResult res = pg->Scope()->Find(name);
165 return {node, pg, isDeclaration, ReferenceKind::VAR_OR_GLOBAL, res};
168 return {node, pg, false, ReferenceKind::MEMBER, {}};
172 return LReference::CreateLRef(pg, node->AsVariableDeclaration()->Declarators()[0]->Id(), true);
175 return LReference::CreateLRef(pg, node->AsVariableDeclarator()->Id(), true);
181 return {node, pg, isDeclaration, ReferenceKind::DESTRUCTURING, {}};
184 return LReference::CreateLRef(pg, node->AsAssignmentPattern()->Left(), true);
187 return LReference::CreateLRef(pg, node->AsRestElement()->Argument(), isDeclaration);
192 binder::ScopeFindResult res = pg->Scope()->Find(name);
194 return {node, pg, isDeclaration, ReferenceKind::VAR_OR_GLOBAL, res};
197 return LReference::CreateLRef(pg, node->AsTSAsExpression()->Expr(), isDeclaration);
200 return LReference::CreateLRef(pg, node->AsTSSatisfiesExpression()->Expr(), isDeclaration);
203 return LReference::CreateLRef(pg, node->AsTSTypeAssertion()->GetExpression(), isDeclaration);
206 return LReference::CreateLRef(pg, node->AsTSNonNullExpression()->Expr(), isDeclaration);