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