| 64 | } |
| 65 | |
| 66 | unique_ptr<HdlOp> VhdlExprParser::visitExplicit_range( |
| 67 | vhdlParser::Explicit_rangeContext *ctx) { |
| 68 | // explicit_range |
| 69 | // : simple_expression direction simple_expression |
| 70 | // ; |
| 71 | HdlOpType op; |
| 72 | if (ctx->direction()->KW_DOWNTO()) { |
| 73 | op = DOWNTO; |
| 74 | } else { |
| 75 | op = TO; |
| 76 | } |
| 77 | return create_object<HdlOp>(ctx, |
| 78 | visitSimple_expression(ctx->simple_expression(0)), op, |
| 79 | visitSimple_expression(ctx->simple_expression(1))); |
| 80 | } |
| 81 | |
| 82 | unique_ptr<iHdlExprItem> VhdlExprParser::visitRange( |
| 83 | vhdlParser::RangeContext *ctx) { |
nothing calls this directly
no outgoing calls
no test coverage detected