MCPcopy Create free account
hub / github.com/Nic30/hdlConvertor / visitPackage_scope

Method visitPackage_scope

src/svConvertor/exprParser.cpp:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52unique_ptr<iHdlExprItem> VerExprParser::visitPackage_scope(
53 sv2017Parser::Package_scopeContext *ctx) {
54 // package_scope: ( KW_DOLAR_UNIT | identifier ) DOUBLE_COLON;
55 auto du = ctx->KW_DOLAR_UNIT();
56 if (du) {
57 return create_object<HdlValueId>(du, "$unit");
58 } else {
59 auto id = ctx->identifier();
60 assert(id);
61 return visitIdentifier(id);
62 }
63}
64
65unique_ptr<iHdlExprItem> VerExprParser::visitPs_identifier(
66 sv2017Parser::Ps_identifierContext *ctx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected