2014-04-01 00:06:16 +00:00
|
|
|
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
|
|
|
//*************************************************************************
|
|
|
|
// DESCRIPTION: Verilator: Ast node structure
|
|
|
|
//
|
2019-11-08 03:33:59 +00:00
|
|
|
// Code available from: https://verilator.org
|
2014-04-01 00:06:16 +00:00
|
|
|
//
|
|
|
|
//*************************************************************************
|
|
|
|
//
|
2020-03-21 15:24:24 +00:00
|
|
|
// Copyright 2003-2020 by Wilson Snyder. This program is free software; you
|
|
|
|
// can redistribute it and/or modify it under the terms of either the GNU
|
2014-04-01 00:06:16 +00:00
|
|
|
// Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
// Version 2.0.
|
2020-03-21 15:24:24 +00:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
2014-04-01 00:06:16 +00:00
|
|
|
//
|
|
|
|
//*************************************************************************
|
2019-10-05 00:17:11 +00:00
|
|
|
|
2014-04-01 00:06:16 +00:00
|
|
|
#ifndef _V3ASTCONSTONLY_H_
|
|
|
|
#define _V3ASTCONSTONLY_H_ 1
|
|
|
|
|
|
|
|
// Include only in visitors that do not not edit nodes, so should use constant iterators
|
2020-04-14 02:51:35 +00:00
|
|
|
#define iterateAndNext error_use_iterateAndNextConst
|
|
|
|
#define iterateChildren error_use_iterateChildrenConst
|
2014-04-01 00:06:16 +00:00
|
|
|
|
2020-04-14 02:51:35 +00:00
|
|
|
#define addNext error_no_addNext_in_ConstOnlyVisitor
|
|
|
|
#define replaceWith error_no_replaceWith_in_ConstOnlyVisitor
|
|
|
|
#define deleteTree error_no_deleteTree_in_ConstOnlyVisitor
|
|
|
|
#define unlinkFrBack error_no_unlinkFrBack_in_ConstOnlyVisitor
|
2014-04-01 00:06:16 +00:00
|
|
|
|
2019-05-19 20:13:13 +00:00
|
|
|
#endif // Guard
|