Skip to content

Commit c78f169

Browse files
committed
[SourceKit] Ignore the '__raw_doc_comment' attribute, which is more of an implementation detail.
1 parent af21c7d commit c78f169

File tree

4 files changed

+4
-31
lines changed

4 files changed

+4
-31
lines changed

test/SourceKit/DocumentStructure/structure.swift.placeholders.response

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,7 @@
7878
key.length: 36,
7979
key.typename: "myArray",
8080
key.nameoffset: 229,
81-
key.namelength: 7,
82-
key.attributes: [
83-
{
84-
key.attribute: source.decl.attribute.__raw_doc_comment
85-
}
86-
]
81+
key.namelength: 7
8782
},
8883
{
8984
key.kind: source.lang.swift.expr.array,

test/SourceKit/DocumentStructure/structure.swift.response

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,6 @@
381381
key.namelength: 11,
382382
key.bodyoffset: 654,
383383
key.bodylength: 186,
384-
key.attributes: [
385-
{
386-
key.attribute: source.decl.attribute.__raw_doc_comment
387-
}
388-
],
389384
key.substructure: [
390385
{
391386
key.kind: source.lang.swift.syntaxtype.comment.mark,
@@ -404,11 +399,6 @@
404399
key.namelength: 16,
405400
key.bodyoffset: 713,
406401
key.bodylength: 125,
407-
key.attributes: [
408-
{
409-
key.attribute: source.decl.attribute.__raw_doc_comment
410-
}
411-
],
412402
key.substructure: [
413403
{
414404
key.kind: source.lang.swift.decl.var.parameter,
@@ -552,12 +542,7 @@
552542
key.length: 15,
553543
key.typename: "Qtys",
554544
key.nameoffset: 1040,
555-
key.namelength: 4,
556-
key.attributes: [
557-
{
558-
key.attribute: source.decl.attribute.__raw_doc_comment
559-
}
560-
]
545+
key.namelength: 4
561546
},
562547
{
563548
key.kind: source.lang.swift.decl.function.free,
@@ -902,9 +887,6 @@
902887
key.attributes: [
903888
{
904889
key.attribute: source.decl.attribute.objc
905-
},
906-
{
907-
key.attribute: source.decl.attribute.__raw_doc_comment
908890
}
909891
],
910892
key.elements: [

test/SourceKit/DocumentStructure/structure_object_literals.swift.response

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@
1111
key.length: 65,
1212
key.typename: "S",
1313
key.nameoffset: 148,
14-
key.namelength: 5,
15-
key.attributes: [
16-
{
17-
key.attribute: source.decl.attribute.__raw_doc_comment
18-
}
19-
]
14+
key.namelength: 5
2015
},
2116
{
2217
key.kind: source.lang.swift.expr.object_literal,

tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ std::vector<UIdent> SwiftLangSupport::UIDsFromDeclAttributes(const DeclAttribute
656656
case DAK_SetterAccessibility:
657657
// Ignore these.
658658
case DAK_ShowInInterface:
659+
case DAK_RawDocComment:
659660
continue;
660661
default:
661662
break;

0 commit comments

Comments
 (0)