MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / idFromCTX

Method idFromCTX

src/modelica/ModelicaFileImpl.cpp:605–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605std::string ClassDefinitionImpl::idFromCTX(modelicaParser::Class_definitionContext* ctx) {
606 auto* specifier = ctx->class_specifier();
607 if (!specifier) {
608 LOG_AND_THROW("ClassDefinition context has null class_specifier");
609 }
610
611 if (!specifier->long_class_specifier()) {
612 LOG_AND_THROW("ClassDefinition context has null long_class_specifier");
613 }
614
615 return buildLongClassName(specifier->long_class_specifier());
616}
617
618std::string ComponentClauseImpl::idFromCTX(modelicaParser::Component_clauseContext* ctx) {
619 if (!ctx) {

Callers

nothing calls this directly

Calls 12

buildLongClassNameFunction · 0.85
class_specifierMethod · 0.80
long_class_specifierMethod · 0.80
type_specifierMethod · 0.80
component_listMethod · 0.80
component_declarationMethod · 0.80
declarationMethod · 0.80
IDENTMethod · 0.80
component_referenceMethod · 0.80
getTextMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected