MCPcopy Create free account
hub / github.com/chigraph/chigraph / localVariableFromName

Method localVariableFromName

libchigraph/src/GraphFunction.cpp:381–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381NamedDataType GraphFunction::localVariableFromName(boost::string_view name) const {
382 for (auto local : mLocalVariables) {
383 if (local.name == name) { return local; }
384 }
385
386 return {};
387}
388
389NamedDataType GraphFunction::getOrCreateLocalVariable(std::string name, DataType type,
390 bool* inserted) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected