summaryrefslogtreecommitdiff
path: root/src/nodes/constructor.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-12 20:16:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-12 20:16:21 +0300
commitccdc319dc8cd8570be6ed01418c544c6f448c9dc (patch)
tree57cc96c395b66f3dff6fac6971899bd87534dbe6 /src/nodes/constructor.h
parent8f87b62956ce4cdc0a735d227ebc53746caa9575 (diff)
downloadparanucker-ccdc319dc8cd8570be6ed01418c544c6f448c9dc.tar.gz
paranucker-ccdc319dc8cd8570be6ed01418c544c6f448c9dc.tar.bz2
paranucker-ccdc319dc8cd8570be6ed01418c544c6f448c9dc.tar.xz
paranucker-ccdc319dc8cd8570be6ed01418c544c6f448c9dc.zip
Add parsing node CONSTRUCTOR.
Diffstat (limited to 'src/nodes/constructor.h')
-rw-r--r--src/nodes/constructor.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/nodes/constructor.h b/src/nodes/constructor.h
new file mode 100644
index 0000000..bd35069
--- /dev/null
+++ b/src/nodes/constructor.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2015 Andrei Karas
+ *
+ * This file is part of AstDumper.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NODES_CONSTRUCTORNODE_H
+#define NODES_CONSTRUCTORNODE_H
+
+#include "nodes/base/type.h"
+
+#include <vector>
+
+struct ConstructorNode : public Node
+{
+ ConstructorNode() :
+ Node(),
+ indexes(),
+ values(),
+ constructorType(nullptr)
+ {
+ }
+
+ std::vector<Node*> indexes;
+ std::vector<Node*> values;
+ TypeNode *constructorType;
+};
+
+#endif // NODES_CONSTRUCTORNODE_H