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 @@ -217,10 +217,10 @@ TypeRepr *ASTGen::generate(AttributedTypeSyntax Type, SourceLoc &Loc) {
217
217
auto Attr = Attribute.castTo <AttributeSyntax>();
218
218
auto AttrNameStr = Attr.getAttributeName ().getText ();
219
219
220
- auto AttrLoc = generate ( Attr.getAttributeName (), Loc );
220
+ auto AtLoc = advanceLocBegin (Loc, Attr.getAtSignToken () );
221
221
auto AttrKind = TypeAttributes::getAttrKindFromString (AttrNameStr);
222
222
223
- TypeAttrs.setAttr (AttrKind, AttrLoc );
223
+ TypeAttrs.setAttr (AttrKind, AtLoc );
224
224
225
225
if (AttrKind == TAK_convention) {
226
226
auto Argument = Attr.getArgument ()->castTo <TokenSyntax>();
@@ -237,7 +237,7 @@ TypeRepr *ASTGen::generate(AttributedTypeSyntax Type, SourceLoc &Loc) {
237
237
}
238
238
239
239
if (TypeAttrs.AtLoc .isInvalid ())
240
- TypeAttrs.AtLoc = AttrLoc ;
240
+ TypeAttrs.AtLoc = AtLoc ;
241
241
}
242
242
243
243
if (!TypeAttrs.empty ())
You can’t perform that action at this time.
0 commit comments