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

Method visitVariable_assignment

src/svConvertor/statementParser.cpp:421–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421unique_ptr<HdlStmAssign> VerStatementParser::visitVariable_assignment(
422 sv2017Parser::Variable_assignmentContext *ctx) {
423 // variable_assignment:
424 // variable_lvalue ASSIGN expression;
425 VerExprParser ep(this);
426 auto _dst = ctx->variable_lvalue();
427 auto dst = ep.visitVariable_lvalue(_dst);
428 auto _src = ctx->expression();
429 auto src = ep.visitExpression(_src);
430 auto o = create_object_with_doc<HdlStmAssign>(ctx, commentParser, move(dst),
431 move(src), true);
432 return o;
433}
434
435unique_ptr<iHdlStatement> VerStatementParser::visitLoop_statement(
436 sv2017Parser::Loop_statementContext *ctx) {

Callers

nothing calls this directly

Calls 2

visitVariable_lvalueMethod · 0.80
visitExpressionMethod · 0.45

Tested by

no test coverage detected