Skip to content

Commit

Permalink
[SourceKit] Ignore the '__raw_doc_comment' attribute, which is more o…
Browse files Browse the repository at this point in the history
…f an implementation detail.
  • Loading branch information
akyrtzi committed May 5, 2016
1 parent af21c7d commit c78f169
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,7 @@
key.length: 36,
key.typename: "myArray",
key.nameoffset: 229,
key.namelength: 7,
key.attributes: [
{
key.attribute: source.decl.attribute.__raw_doc_comment
}
]
key.namelength: 7
},
{
key.kind: source.lang.swift.expr.array,
Expand Down
20 changes: 1 addition & 19 deletions test/SourceKit/DocumentStructure/structure.swift.response
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,6 @@
key.namelength: 11,
key.bodyoffset: 654,
key.bodylength: 186,
key.attributes: [
{
key.attribute: source.decl.attribute.__raw_doc_comment
}
],
key.substructure: [
{
key.kind: source.lang.swift.syntaxtype.comment.mark,
Expand All @@ -404,11 +399,6 @@
key.namelength: 16,
key.bodyoffset: 713,
key.bodylength: 125,
key.attributes: [
{
key.attribute: source.decl.attribute.__raw_doc_comment
}
],
key.substructure: [
{
key.kind: source.lang.swift.decl.var.parameter,
Expand Down Expand Up @@ -552,12 +542,7 @@
key.length: 15,
key.typename: "Qtys",
key.nameoffset: 1040,
key.namelength: 4,
key.attributes: [
{
key.attribute: source.decl.attribute.__raw_doc_comment
}
]
key.namelength: 4
},
{
key.kind: source.lang.swift.decl.function.free,
Expand Down Expand Up @@ -902,9 +887,6 @@
key.attributes: [
{
key.attribute: source.decl.attribute.objc
},
{
key.attribute: source.decl.attribute.__raw_doc_comment
}
],
key.elements: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@
key.length: 65,
key.typename: "S",
key.nameoffset: 148,
key.namelength: 5,
key.attributes: [
{
key.attribute: source.decl.attribute.__raw_doc_comment
}
]
key.namelength: 5
},
{
key.kind: source.lang.swift.expr.object_literal,
Expand Down
1 change: 1 addition & 0 deletions tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ std::vector<UIdent> SwiftLangSupport::UIDsFromDeclAttributes(const DeclAttribute
case DAK_SetterAccessibility:
// Ignore these.
case DAK_ShowInInterface:
case DAK_RawDocComment:
continue;
default:
break;
Expand Down

0 comments on commit c78f169

Please sign in to comment.