aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/ast/rust-ast.cc')
-rw-r--r--gcc/rust/ast/rust-ast.cc51
1 files changed, 51 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.cc b/gcc/rust/ast/rust-ast.cc
index 5d571b4..f3dabc6 100644
--- a/gcc/rust/ast/rust-ast.cc
+++ b/gcc/rust/ast/rust-ast.cc
@@ -19,6 +19,7 @@ along with GCC; see the file COPYING3. If not see
#include "rust-ast.h"
#include "optional.h"
+#include "rust-builtin-ast-nodes.h"
#include "rust-system.h"
#include "rust-ast-full.h"
#include "rust-diagnostics.h"
@@ -5054,6 +5055,56 @@ FormatArgs::accept_vis (ASTVisitor &vis)
vis.visit (*this);
}
+std::string
+FormatArgs::as_string () const
+{
+ // FIXME(Arthur): Improve
+ return "FormatArgs";
+}
+
+location_t
+FormatArgs::get_locus () const
+{
+ rust_unreachable ();
+}
+
+bool
+FormatArgs::is_expr_without_block () const
+{
+ return false;
+}
+
+void
+FormatArgs::mark_for_strip ()
+{
+ marked_for_strip = true;
+}
+
+bool
+FormatArgs::is_marked_for_strip () const
+{
+ return marked_for_strip;
+}
+
+std::vector<Attribute> &
+FormatArgs::get_outer_attrs ()
+{
+ rust_unreachable ();
+}
+
+void FormatArgs::set_outer_attrs (std::vector<Attribute>)
+{
+ rust_unreachable ();
+}
+
+Expr *
+FormatArgs::clone_expr_impl () const
+{
+ std::cerr << "[ARTHUR] cloning FormatArgs! " << std::endl;
+
+ return new FormatArgs (*this);
+}
+
} // namespace AST
std::ostream &