blob: e51e3c50debae2b997e0dcbc70817e7df0e0e864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef _HIR_PATH_HPP_
#define _HIR_PATH_HPP_
#pragma once
#include <common.hpp>
namespace HIR {
class TypeRef;
/// Simple path - Absolute with no generic parameters
struct SimplePath
{
SimplePath(::std::string crate):
m_crate_name( mv$(crate) )
{
}
::std::string m_crate_name;
::std::vector< ::std::string> m_components;
};
/// Generic path - Simple path with one lot of generic params
class GenericPath
{
public:
SimplePath m_path;
::std::vector<TypeRef> m_params;
};
class Path
{
// Two possibilities
// - UFCS
// - Generic path
};
} // namespace HIR
#endif
|