MCPcopy Create free account
hub / github.com/argotorg/solidity / setSources

Method setSources

libsolidity/interface/CompilerStack.cpp:355–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355void 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
364bool CompilerStack::parse()
365{

Callers 15

testCompilerMethod · 0.80
compileContractMethod · 0.80
runFrameworkMethod · 0.80
compileMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by 4

runMethod · 0.64
runMethod · 0.64
runMethod · 0.64
runMethod · 0.64