summaryrefslogtreecommitdiff
path: root/src/expr/node_manager.h
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-04-05 14:28:55 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-04-05 14:28:55 +0000
commit57e51c2212f1c626368c66c6fbcf78ea0ce9722e (patch)
tree6264e0a545a63bd8922fc7c2638fe003d404bdea /src/expr/node_manager.h
parent342c81e52224be3afc255a8a719747fa5eafdb32 (diff)
Minor refactorings, in response to code review (Bug #73)
Diffstat (limited to 'src/expr/node_manager.h')
-rw-r--r--src/expr/node_manager.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/expr/node_manager.h b/src/expr/node_manager.h
index 83f28a842..2b403ad36 100644
--- a/src/expr/node_manager.h
+++ b/src/expr/node_manager.h
@@ -270,11 +270,11 @@ public:
Node mkNode(Kind kind, const std::vector<NodeTemplate<ref_count> >& children);
/**
- * Create a variable with the given type and name. NOTE that no
- * lookup is done on the name. If you mkVar(type, "a") and then
- * mkVar(type, "a") again, you have two variables.
+ * Create a variable with the given name and type. NOTE that no
+ * lookup is done on the name. If you mkVar("a", type) and then
+ * mkVar("a", type) again, you have two variables.
*/
- Node mkVar(Type* type, const std::string& name);
+ Node mkVar(const std::string& name, Type* type);
/** Create a variable with the given type. */
Node mkVar(Type* type);
@@ -767,7 +767,7 @@ inline Node NodeManager::mkNode(Kind kind,
return NodeBuilder<>(this, kind).append(children);
}
-inline Node NodeManager::mkVar(Type* type, const std::string& name) {
+inline Node NodeManager::mkVar(const std::string& name, Type* type) {
Node n = mkVar(type);
n.setAttribute(expr::VarNameAttr(), name);
return n;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback