Displaying 1 result from an estimated 1 matches for "as_node".
Did you mean:
os_node
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...}
+ bool is_empty() const { return !first && !second; }
+
+ string_ref as_string() const
+ {
+ assert(is_string());
+ return string_ref(static_cast<const char*>(first),
+ static_cast<const char*>(second));
+ }
+
+ const node* as_node() const
+ {
+ assert(is_node());
+ return static_cast<const node*>(first);
+ }
+};
+
+class array_type final : public type {
+ node* base;
+ node_or_string dimension;
+
+public:
+ array_type(node* base, node_or_string dimension)
+ : base(base), dimensio...