| 43 | } |
| 44 | |
| 45 | void ModelicaFileImpl::parse(std::string_view text) { |
| 46 | //m_text = text; |
| 47 | |
| 48 | // Create ANTLR input stream |
| 49 | m_inputStream = std::make_unique<antlr4::ANTLRInputStream>(text); |
| 50 | m_modelicaLexer = std::make_unique<modelicaLexer>(m_inputStream.get()); |
| 51 | m_tokenStream = std::make_unique<antlr4::CommonTokenStream>(m_modelicaLexer.get()); |
| 52 | m_modelicaParser = std::make_unique<modelicaParser>(m_tokenStream.get()); |
| 53 | //m_ctx = m_modelicaParser->stored_definition(); |
| 54 | |
| 55 | updateCTX(); |
| 56 | m_classDefinitionsDirty = true; |
| 57 | } |
| 58 | |
| 59 | modelicaParser* ModelicaFileImpl::parser() const { |
| 60 | return m_modelicaParser.get(); |
no test coverage detected