aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-11 08:24:43 +0000
committerGitHub <noreply@github.com>2022-03-11 08:24:43 +0000
commit51c7cf4b974140d4ace6c3cb79de9a00bb2efcbb (patch)
tree2df4325c6d707f4c49bffcd1497b647fc9d49fab /gcc/rust/resolve/rust-ast-resolve-expr.h
parent77a49507446b67a6c207b4e4fec3639f536b9eca (diff)
parentf02392c8b378a68fb2525098a41a90bd16faa7fd (diff)
downloadgcc-51c7cf4b974140d4ace6c3cb79de9a00bb2efcbb.zip
gcc-51c7cf4b974140d4ace6c3cb79de9a00bb2efcbb.tar.gz
gcc-51c7cf4b974140d4ace6c3cb79de9a00bb2efcbb.tar.bz2
Merge #998
998: Parse macro expansion properly r=CohenArthur a=CohenArthur This PR adds a base for trying to parse statements or items in macro invocations. We are now able to parse multiple items / expressions / statements properly, but do not lower them properly, which is the last remaining task in #943 New macro parsing logic: ```mermaid flowchart TD; has_semi -- Yes --> stmt; has_semi -- No --> invocation; invocation -- Is Parens --> expr; invocation -- Is Square --> expr; invocation -- Is Curly --> stmt; ``` Closes #943 Closes #959 Closes #952 Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.h')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve-expr.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve-expr.h b/gcc/rust/resolve/rust-ast-resolve-expr.h
index d8bd203..a049ba1 100644
--- a/gcc/rust/resolve/rust-ast-resolve-expr.h
+++ b/gcc/rust/resolve/rust-ast-resolve-expr.h
@@ -62,8 +62,6 @@ public:
static void go (AST::Expr *expr, NodeId parent, const CanonicalPath &prefix,
const CanonicalPath &canonical_prefix);
- void visit (AST::MacroInvocation &expr) override;
-
void visit (AST::TupleIndexExpr &expr) override;
void visit (AST::TupleExpr &expr) override;