MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / clone

Method clone

src/Expression/ExprBuilder.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51namespace SURELOG {
52
53Value* ExprBuilder::clone(Value* val) {
54 Value* clone = nullptr;
55 if (StValue* v = value_cast<StValue*>(val)) {
56 clone = m_valueFactory.newValue(*v);
57 } else if (LValue* v = value_cast<LValue*>(val)) {
58 clone = m_valueFactory.newValue(*v);
59 } else if (SValue* v = value_cast<SValue*>(val)) {
60 clone = m_valueFactory.newValue(*v);
61 }
62 return clone;
63}
64
65// Often, there are assignments to muteErrors here, that are never read.
66// It seems like there is a (future?) intention here. So for now, disable

Callers 4

importPackageMethod · 0.80
elaborateInstance_Method · 0.80
collectParams_Method · 0.80
setValueMethod · 0.80

Calls 1

newValueMethod · 0.80

Tested by

no test coverage detected