diff --git a/test/SourceKit/DocumentStructure/structure.swift.placeholders.response b/test/SourceKit/DocumentStructure/structure.swift.placeholders.response index 3ce6b6c64d4..8d8dfad1169 100644 --- a/test/SourceKit/DocumentStructure/structure.swift.placeholders.response +++ b/test/SourceKit/DocumentStructure/structure.swift.placeholders.response @@ -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, diff --git a/test/SourceKit/DocumentStructure/structure.swift.response b/test/SourceKit/DocumentStructure/structure.swift.response index 0a6948fb16b..deca1cc0152 100644 --- a/test/SourceKit/DocumentStructure/structure.swift.response +++ b/test/SourceKit/DocumentStructure/structure.swift.response @@ -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, @@ -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, @@ -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, @@ -902,9 +887,6 @@ key.attributes: [ { key.attribute: source.decl.attribute.objc - }, - { - key.attribute: source.decl.attribute.__raw_doc_comment } ], key.elements: [ diff --git a/test/SourceKit/DocumentStructure/structure_object_literals.swift.response b/test/SourceKit/DocumentStructure/structure_object_literals.swift.response index e08b6ffbea2..2966ba8f039 100644 --- a/test/SourceKit/DocumentStructure/structure_object_literals.swift.response +++ b/test/SourceKit/DocumentStructure/structure_object_literals.swift.response @@ -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, diff --git a/tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp b/tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp index 12cc6d1bbf1..c5c31d1e139 100644 --- a/tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp +++ b/tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp @@ -656,6 +656,7 @@ std::vector SwiftLangSupport::UIDsFromDeclAttributes(const DeclAttribute case DAK_SetterAccessibility: // Ignore these. case DAK_ShowInInterface: + case DAK_RawDocComment: continue; default: break;