Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/dmd/astbase.d
Original file line number Diff line number Diff line change
Expand Up @@ -1213,9 +1213,10 @@ struct ASTBase
{
Expressions* atts;

extern (D) this(Expressions* atts, Dsymbols* decl)
extern (D) this(const ref Loc loc, Expressions* atts, Dsymbols* decl)
{
super(decl);
this.loc = loc;
this.atts = atts;
}

Expand Down
5 changes: 3 additions & 2 deletions src/dmd/attrib.d
Original file line number Diff line number Diff line change
Expand Up @@ -1169,9 +1169,10 @@ extern (C++) final class UserAttributeDeclaration : AttribDeclaration
{
Expressions* atts;

extern (D) this(Expressions* atts, Dsymbols* decl)
extern (D) this(const ref Loc loc, Expressions* atts, Dsymbols* decl)
{
super(decl);
this.loc = loc;
//printf("UserAttributeDeclaration()\n");
this.atts = atts;
}
Expand All @@ -1180,7 +1181,7 @@ extern (C++) final class UserAttributeDeclaration : AttribDeclaration
{
//printf("UserAttributeDeclaration::syntaxCopy('%s')\n", toChars());
assert(!s);
return new UserAttributeDeclaration(Expression.arraySyntaxCopy(this.atts), Dsymbol.arraySyntaxCopy(decl));
return new UserAttributeDeclaration(loc, Expression.arraySyntaxCopy(this.atts), Dsymbol.arraySyntaxCopy(decl));
}

override Scope* newScope(Scope* sc)
Expand Down
Loading