mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit][DocInfo] Avoid outputing identifier annotations for ranges already covered by parameter/argument annotations
Resolves rdar://problem/20799943
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user