File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2179,7 +2179,7 @@ class Parser
21792179 }
21802180 else if (isAuto == DecType.autoFun)
21812181 {
2182- mixin (nullCheck! ` node.functionDeclaration = parseFunctionDeclaration(null, true)` );
2182+ mixin (nullCheck! ` node.functionDeclaration = parseFunctionDeclaration(null, true, node.attributes )` );
21832183 node.tokens = tokens[startIndex .. index];
21842184 return node;
21852185 }
@@ -2412,7 +2412,7 @@ class Parser
24122412 goToBookmark(b2);
24132413 if (savedComment && comment is null )
24142414 comment = savedComment;
2415- node.functionDeclaration = parseFunctionDeclaration(t, false );
2415+ node.functionDeclaration = parseFunctionDeclaration(t, false , node.attributes );
24162416 }
24172417 else abandonBookmark(b2);
24182418 if (! node.variableDeclaration && ! node.functionDeclaration)
@@ -3518,7 +3518,7 @@ class Parser
35183518 return null ;
35193519 ownArray(node.storageClasses, storageClasses);
35203520
3521- foreach (a; node. attributes)
3521+ foreach (a; attributes)
35223522 {
35233523 if (a.attribute == tok! " auto" )
35243524 node.hasAuto = true ;
You can’t perform that action at this time.
0 commit comments