Fix issues with doc comments being missing from some declarations

This commit is contained in:
Hackerpilot 2014-05-26 02:52:53 +00:00
parent e3d8e448bc
commit 2ce5995a1c
2 changed files with 3 additions and 1 deletions

View File

@ -787,6 +787,7 @@ public:
} }
/** */ Token[] identifiers; /** */ Token[] identifiers;
/** */ Initializer[] initializers; /** */ Initializer[] initializers;
/** */ string comment;
mixin OpEquals; mixin OpEquals;
} }

View File

@ -6051,6 +6051,7 @@ q{doStuff(5)}c;
} }
node.type = type is null ? parseType() : type; node.type = type is null ? parseType() : type;
node.comment = comment;
Declarator[] declarators; Declarator[] declarators;
while(true) while(true)
@ -6073,7 +6074,7 @@ q{doStuff(5)}c;
// } // }
// else // else
{ {
expect(tok!";"); if (expect(tok!";") is null) return null;
return node; return node;
} }
} }