File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ struct Constant
130130 typedef std::map<std::string, Value *> ValMap;
131131#endif
132132
133- typedef std::unordered_map <PosIdx, DocComment> DocCommentMap;
133+ typedef std::map <PosIdx, DocComment> DocCommentMap;
134134
135135struct Env
136136{
@@ -335,7 +335,7 @@ private:
335335 * Associate source positions of certain AST nodes with their preceding doc comment, if they have one.
336336 * Grouped by file.
337337 */
338- std::unordered_map <SourcePath, DocCommentMap> positionToDocComment;
338+ std::map <SourcePath, DocCommentMap> positionToDocComment;
339339
340340 LookupPath lookupPath;
341341
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ struct LexerState
6464 /* *
6565 * @brief Maps some positions to a DocComment, where the comment is relevant to the location.
6666 */
67- std::unordered_map <PosIdx, DocComment> & positionToDocComment;
67+ std::map <PosIdx, DocComment> & positionToDocComment;
6868
6969 PosTable & positions;
7070 PosTable::Origin origin;
Original file line number Diff line number Diff line change 4848
4949namespace nix {
5050
51- typedef std::unordered_map <PosIdx, DocComment> DocCommentMap;
51+ typedef std::map <PosIdx, DocComment> DocCommentMap;
5252
5353Expr * parseExprFromBuf (
5454 char * text,
You can’t perform that action at this time.
0 commit comments