| 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 | { |
nothing calls this directly
no test coverage detected