summaryrefslogtreecommitdiff
path: root/src/synexts/derive.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-01-30 15:58:42 +0800
committerJohn Hodge <tpg@mutabah.net>2016-01-30 15:58:42 +0800
commit5481c481d9120732f447fc108a1cf86659fda579 (patch)
treecd7440e1d84efc1dd8398f5f305abfb0955b4045 /src/synexts/derive.cpp
parente3cf598517bf45317df0891462d71fa0b20dd1b9 (diff)
downloadmrust-5481c481d9120732f447fc108a1cf86659fda579.tar.gz
Rename TypeParams to GenericParams
Diffstat (limited to 'src/synexts/derive.cpp')
-rw-r--r--src/synexts/derive.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/synexts/derive.cpp b/src/synexts/derive.cpp
index 92566d06..749da870 100644
--- a/src/synexts/derive.cpp
+++ b/src/synexts/derive.cpp
@@ -24,7 +24,7 @@ static inline AST::ExprNodeP mk_exprnodep(AST::ExprNode* en){ return AST::ExprNo
/// Interface for derive handlers
struct Deriver
{
- virtual AST::Impl handle_item(const AST::TypeParams& params, const TypeRef& type, const AST::Struct& str) const = 0;
+ virtual AST::Impl handle_item(const AST::GenericParams& params, const TypeRef& type, const AST::Struct& str) const = 0;
};
/// 'Debug' derive handler
@@ -45,7 +45,7 @@ class Deriver_Debug:
//}
public:
- AST::Impl handle_item(const AST::TypeParams& p, const TypeRef& type, const AST::Struct& str) const override
+ AST::Impl handle_item(const AST::GenericParams& p, const TypeRef& type, const AST::Struct& str) const override
{
// TODO: be correct herhe and use "core" as the crate name
// - Requires handling the crate_name crate attribute correctly
@@ -83,7 +83,7 @@ public:
DEBUG("node = " << *node);
AST::Function fcn(
- AST::MetaItems(), AST::TypeParams(),
+ AST::MetaItems(), AST::GenericParams(),
ret_type,
vec$(
::std::make_pair( AST::Pattern(AST::Pattern::TagBind(), "self"), TypeRef(TypeRef::TagReference(), false, TypeRef("Self")) ),