Lines Matching refs:variable
32 …tic void CheckConstAssignment(PandaGen *pg, const ir::AstNode *node, varbinder::Variable *variable) in CheckConstAssignment() argument
34 if (!variable->Declaration()->IsConstDecl()) { in CheckConstAssignment()
38 pg->ThrowConstAssignment(node, variable->Name()); in CheckConstAssignment()
45 if (result.variable->Declaration()->IsVarDecl()) { in ExpandLoadLexVar()
46 pg->LoadLexicalVar(node, result.lexLevel, result.variable->AsLocalVariable()->LexIdx()); in ExpandLoadLexVar()
48 … pg->LoadLexical(node, result.name, result.lexLevel, result.variable->AsLocalVariable()->LexIdx()); in ExpandLoadLexVar()
54 auto *local = result.variable->AsLocalVariable(); in ExpandLoadNormalVar()
65 if (result.variable->LexicalBound()) { in Expand()
74 static void StoreLocalExport(PandaGen *pg, const ir::AstNode *node, varbinder::Variable *variable) in StoreLocalExport() argument
76 … if (!variable->HasFlag(varbinder::VariableFlags::LOCAL_EXPORT) || !pg->Scope()->IsModuleScope()) { in StoreLocalExport()
80 auto range = pg->Scope()->AsModuleScope()->LocalExports().equal_range(variable); in StoreLocalExport()
92 varbinder::LocalVariable *local = result.variable->AsLocalVariable(); in ExpandStoreLexVar()
94 const auto *decl = result.variable->Declaration(); in ExpandStoreLexVar()
112 auto *local = result.variable->AsLocalVariable(); in ExpandStoreNormalVar()
130 if (result.variable->LexicalBound()) { in Expand()