aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-proc-macro-invocation.h
blob: b45e0139a9671f546617a5a398f944240102fb86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef RUST_PROC_MACRO_INVOCATION_H
#define RUST_PROC_MACRO_INVOCATION_H

#include "rust-mapping-common.h"
#include "rust-location.h"

namespace Rust {

class ProcMacroInvocable
{
public:
  virtual NodeId get_node_id () const = 0;
  virtual const std::string as_string () const = 0;
  virtual Location get_locus () const = 0;

  virtual ~ProcMacroInvocable () {}
};

} // namespace Rust

#endif /* ! RUST_PROC_MACRO_INVOCATION_H*/