Skip to content

Commit

Permalink
need public access on the Literal from LiteralExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Herron committed May 16, 2020
1 parent 966e522 commit 382b5a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcc/rust/ast/rust-expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ class LiteralExpr : public ExprWithoutBlock
::std::string value_as_string;
LitType type;*/
// moved to Literal

public:
Literal literal;

Location locus;

public:
::std::string as_string () const { return literal.as_string (); }

inline Literal::LitType get_lit_type () const
Expand Down

0 comments on commit 382b5a8

Please sign in to comment.