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

Method ParseProgram

Source/SpireCore/Parser.cpp:976–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974 }
975
976 RefPtr<ProgramSyntaxNode> Parser::ParseProgram()
977 {
978 RefPtr<ProgramSyntaxNode> program = new ProgramSyntaxNode();
979 PushScope(program.Ptr());
980 program->Position = CodePosition(0, 0, 0, fileName);
981 program->Scope = currentScope;
982 ParseDeclBody(this, program.Ptr(), TokenType::EndOfFile);
983 PopScope();
984 assert(!currentScope.Ptr());
985 currentScope = nullptr;
986 return program;
987 }
988
989 RefPtr<InterfaceSyntaxNode> Parser::ParseInterface()
990 {

Callers

nothing calls this directly

Calls 3

CodePositionClass · 0.85
ParseDeclBodyFunction · 0.85
PtrMethod · 0.45

Tested by

no test coverage detected