summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/projection_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/projection_parser.cpp')
-rw-r--r--src/mongo/db/query/projection_parser.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/db/query/projection_parser.cpp b/src/mongo/db/query/projection_parser.cpp
index 54f050b7353..bc0f6944dd4 100644
--- a/src/mongo/db/query/projection_parser.cpp
+++ b/src/mongo/db/query/projection_parser.cpp
@@ -186,12 +186,6 @@ void addNodeAtPathHelper(ProjectionPathASTNode* root,
addNodeAtPathHelper(childPathNode, path, componentIndex + 1, std::move(newChild));
}
-void addNodeAtPath(ProjectionPathASTNode* root,
- const FieldPath& path,
- std::unique_ptr<ASTNode> newChild) {
- addNodeAtPathHelper(root, path, 0, std::move(newChild));
-}
-
bool hasPositionalOperator(StringData path) {
return path.endsWith(".$");
}
@@ -641,5 +635,12 @@ Projection parse(boost::intrusive_ptr<ExpressionContext> expCtx,
ProjectionPolicies policies) {
return parse(std::move(expCtx), obj, nullptr, BSONObj(), std::move(policies));
}
+
+void addNodeAtPath(ProjectionPathASTNode* root,
+ const FieldPath& path,
+ std::unique_ptr<ASTNode> newChild) {
+ addNodeAtPathHelper(root, path, 0, std::move(newChild));
+}
+
} // namespace projection_ast
} // namespace mongo