| 353 | } |
| 354 | |
| 355 | void CompilerStack::setSources(StringMap _sources) |
| 356 | { |
| 357 | solAssert(m_stackState != SourcesSet, "Cannot change sources once set."); |
| 358 | solAssert(m_stackState == Empty, "Must set sources before parsing."); |
| 359 | for (auto source: _sources) |
| 360 | m_sources[source.first].charStream = std::make_unique<CharStream>(/*content*/std::move(source.second), /*name*/source.first); |
| 361 | m_stackState = SourcesSet; |
| 362 | } |
| 363 | |
| 364 | bool CompilerStack::parse() |
| 365 | { |
no outgoing calls