diff --git a/nixd/lib/Syntax/Parser/Parser.y b/nixd/lib/Syntax/Parser/Parser.y index 23b15bd02..8ed4d90bc 100644 --- a/nixd/lib/Syntax/Parser/Parser.y +++ b/nixd/lib/Syntax/Parser/Parser.y @@ -75,6 +75,7 @@ expr_function .Formals = nullptr, .Body = $3 }; + Data->Nodes.record(Func); Func->Range = mkRange(yylloc, *Data); $$ = Func; } @@ -84,6 +85,7 @@ expr_function .Formals = $2, .Body = $5 }; + Data->Nodes.record(Func); Func->Range = mkRange(yylloc, *Data); $$ = Func; } @@ -93,6 +95,7 @@ expr_function .Formals = $2, .Body = $7 }; + Data->Nodes.record(Func); Func->Range = mkRange(yylloc, *Data); $$ = Func; } @@ -101,6 +104,7 @@ expr_function .Cond = $2, .Body = $4 }; + Data->Nodes.record(Assert); Assert->Range = mkRange(yylloc, *Data); $$ = Assert; } @@ -109,6 +113,7 @@ expr_function .Attrs = $2, .Body = $4 }; + Data->Nodes.record(With); With->Range = mkRange(yylloc, *Data); $$ = With; } @@ -117,6 +122,7 @@ expr_function .Binds = $2, .Body = $4 }; + Data->Nodes.record(Let); Let->Range = mkRange(yylloc, *Data); $$ = Let; } @@ -131,6 +137,7 @@ expr_if .Then = $4, .Else = $6 }; + Data->Nodes.record(If); If->Range = mkRange(yylloc, *Data); $$ = If; }