Lines Matching refs:Variable

25 static ArenaSet<varbinder::Variable *> FindCaptured(public_lib::Context *ctx, ir::ScriptFunction *func)
28 auto captured = ArenaSet<varbinder::Variable *>(allocator->Adapter());
62 auto *var = ast->AsIdentifier()->Variable();
78 auto varsToBox = ArenaSet<varbinder::Variable *>(allocator->Adapter());
82 static ArenaSet<varbinder::Variable *> FindModified(public_lib::Context *ctx, ir::ScriptFunction *func)
85 auto modified = ArenaSet<varbinder::Variable *>(allocator->Adapter());
91 ASSERT(assignment->Left()->Variable() != nullptr);
92 auto *var = assignment->Left()->Variable();
103 static ArenaSet<varbinder::Variable *> FindVariablesToBox(public_lib::Context *ctx, ir::ScriptFunction *func)
109 auto varsToBox = ArenaSet<varbinder::Variable *>(allocator->Adapter());
117 ArenaMap<varbinder::Variable *, varbinder::Variable *> *varsMap)
124 auto *oldVar = id->Variable();
133 initId->SetVariable(id->Variable());
172 ArenaMap<varbinder::Variable *, varbinder::Variable *> *varsMap)
179 auto *oldVar = id->Variable();
243 static ir::AstNode *HandleReference(public_lib::Context *ctx, ir::Identifier *id, varbinder::Variable *var)
271 ArenaMap<varbinder::Variable *, varbinder::Variable *> const &varsMap)
280 auto *oldVar = ass->Left()->AsIdentifier()->Variable();
311 auto varsMap = ArenaMap<varbinder::Variable *, varbinder::Variable *>(allocator->Adapter());
320 if (ast->IsETSParameterExpression() && varsToBox.count(ast->AsETSParameterExpression()->Variable()) > 0) {
325 varsToBox.count(ast->AsVariableDeclarator()->Id()->AsIdentifier()->Variable()) > 0) {
329 varsToBox.count(ast->AsAssignmentExpression()->Left()->AsIdentifier()->Variable()) > 0) {
333 !OnLeftSideOfAssignment(ast) && varsToBox.count(ast->AsIdentifier()->Variable()) > 0) {
334 return HandleReference(ctx, ast->AsIdentifier(), varsMap.find(ast->AsIdentifier()->Variable())->second);
381 auto var = asExpr->Left()->AsIdentifier()->Variable();