[SourceKit][DocInfo] Avoid outputing identifier annotations for ranges already covered by parameter/argument annotations

Resolves rdar://problem/20799943
This commit is contained in:
Nathan Hawes
2017-11-16 17:34:47 -08:00
parent fcc27f04ee
commit 01e538951f
5 changed files with 1 additions and 711 deletions

View File

@@ -677,12 +677,12 @@ public:
return true;
case SyntaxNodeKind::Keyword:
case SyntaxNodeKind::Identifier:
if (Node.Range.getStart() == LastArgLoc ||
Node.Range.getStart() == LastParamLoc)
return true;
break;
case SyntaxNodeKind::Identifier:
case SyntaxNodeKind::DollarIdent:
case SyntaxNodeKind::Integer:
case SyntaxNodeKind::Floating: