MCPcopy Create free account
hub / github.com/csyonghe/Spire / VisitBlockStatement

Method VisitBlockStatement

Source/SpireCore/CodeGenerator.cpp:656–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654 return function;
655 }
656 virtual RefPtr<StatementSyntaxNode> VisitBlockStatement(BlockStatementSyntaxNode* stmt) override
657 {
658 variables.PushScope();
659 for (auto & subStmt : stmt->Statements)
660 subStmt->Accept(this);
661 variables.PopScope();
662 return stmt;
663 }
664 virtual RefPtr<StatementSyntaxNode> VisitWhileStatement(WhileStatementSyntaxNode* stmt) override
665 {
666 RefPtr<WhileInstruction> instr = new WhileInstruction();

Callers

nothing calls this directly

Calls 3

PushScopeMethod · 0.45
AcceptMethod · 0.45
PopScopeMethod · 0.45

Tested by

no test coverage detected