summaryrefslogtreecommitdiff
path: root/ast/path.hpp
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2014-12-23 12:06:25 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2014-12-23 12:06:25 +0800
commit04dd6b05f945c944c13431baa509ec628ac26f41 (patch)
tree5a3d67f4f875481057118a3c553abf5ae998a548 /ast/path.hpp
parent89771222961d699f5ca6f586033b5fb915ced431 (diff)
downloadmrust-04dd6b05f945c944c13431baa509ec628ac26f41.tar.gz
Move source files to src/ folder
Diffstat (limited to 'ast/path.hpp')
-rw-r--r--ast/path.hpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/ast/path.hpp b/ast/path.hpp
deleted file mode 100644
index 09e5d9ed..00000000
--- a/ast/path.hpp
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- */
-#ifndef AST_PATH_HPP_INCLUDED
-#define AST_PATH_HPP_INCLUDED
-
-#include <string>
-#include <stdexcept>
-
-class TypeRef;
-
-namespace AST {
-
-class TypeParam
-{
-public:
- TypeParam(bool is_lifetime, ::std::string name);
- void addLifetimeBound(::std::string name);
- void addTypeBound(TypeRef type);
-};
-
-typedef ::std::vector<TypeParam> TypeParams;
-typedef ::std::pair< ::std::string, TypeRef> StructItem;
-
-class PathNode
-{
- ::std::string m_name;
- ::std::vector<TypeRef> m_params;
-public:
- PathNode(::std::string name, ::std::vector<TypeRef> args);
- const ::std::string& name() const;
- const ::std::vector<TypeRef>& args() const;
-};
-
-class Path
-{
-public:
- Path();
- struct TagAbsolute {};
- Path(TagAbsolute);
-
- void append(PathNode node) {}
- size_t length() const {return 0;}
-
- PathNode& operator[](size_t idx) { throw ::std::out_of_range("Path []"); }
-};
-
-} // namespace AST
-
-#endif