Skip to content

Commit a54ca6f

Browse files
committed
Remove empty 'returns' tags.
1 parent fd22f7f commit a54ca6f

35 files changed

+1
-609
lines changed

src/CSharp.Workspaces/CSharp/Extensions/WorkspaceExtensions.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ internal static Task<Document> RemoveNodeAsync(
6969
/// <param name="document"></param>
7070
/// <param name="member"></param>
7171
/// <param name="cancellationToken"></param>
72-
/// <returns></returns>
7372
internal static Task<Document> RemoveMemberAsync(
7473
this Document document,
7574
MemberDeclarationSyntax member,
@@ -144,7 +143,6 @@ internal static Task<Document> RemoveStatementAsync(
144143
/// <param name="document"></param>
145144
/// <param name="comments"></param>
146145
/// <param name="cancellationToken"></param>
147-
/// <returns></returns>
148146
public static async Task<Document> RemoveCommentsAsync(
149147
this Document document,
150148
CommentFilter comments,
@@ -168,7 +166,6 @@ public static async Task<Document> RemoveCommentsAsync(
168166
/// <param name="span"></param>
169167
/// <param name="comments"></param>
170168
/// <param name="cancellationToken"></param>
171-
/// <returns></returns>
172169
public static async Task<Document> RemoveCommentsAsync(
173170
this Document document,
174171
TextSpan span,
@@ -192,7 +189,6 @@ public static async Task<Document> RemoveCommentsAsync(
192189
/// <param name="document"></param>
193190
/// <param name="span"></param>
194191
/// <param name="cancellationToken"></param>
195-
/// <returns></returns>
196192
public static async Task<Document> RemoveTriviaAsync(
197193
this Document document,
198194
TextSpan span,
@@ -214,7 +210,6 @@ public static async Task<Document> RemoveTriviaAsync(
214210
/// <param name="document"></param>
215211
/// <param name="directiveFilter"></param>
216212
/// <param name="cancellationToken"></param>
217-
/// <returns></returns>
218213
public static async Task<Document> RemovePreprocessorDirectivesAsync(
219214
this Document document,
220215
PreprocessorDirectiveFilter directiveFilter,
@@ -239,7 +234,6 @@ public static async Task<Document> RemovePreprocessorDirectivesAsync(
239234
/// <param name="span"></param>
240235
/// <param name="directiveFilter"></param>
241236
/// <param name="cancellationToken"></param>
242-
/// <returns></returns>
243237
public static async Task<Document> RemovePreprocessorDirectivesAsync(
244238
this Document document,
245239
TextSpan span,
@@ -361,7 +355,6 @@ bool ShouldRemoveDirective(DirectiveTriviaSyntax directive)
361355
/// <param name="document"></param>
362356
/// <param name="region"></param>
363357
/// <param name="cancellationToken"></param>
364-
/// <returns></returns>
365358
public static async Task<Document> RemoveRegionAsync(
366359
this Document document,
367360
RegionInfo region,

src/CSharp.Workspaces/CSharp/Extensions/WorkspaceSyntaxExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public static class WorkspaceSyntaxExtensions
3535
/// <param name="expression"></param>
3636
/// <param name="includeElasticTrivia">If true, add elastic trivia.</param>
3737
/// <param name="simplifiable">If true, attach <see cref="Simplifier.Annotation"/> to the parenthesized expression.</param>
38-
/// <returns></returns>
3938
public static ParenthesizedExpressionSyntax Parenthesize(
4039
this ExpressionSyntax expression,
4140
bool includeElasticTrivia = true,
@@ -83,7 +82,6 @@ internal static MemberAccessExpressionSyntax QualifyWithThis(this SimpleNameSynt
8382
/// </summary>
8483
/// <typeparam name="TNode"></typeparam>
8584
/// <param name="node"></param>
86-
/// <returns></returns>
8785
public static TNode WithFormatterAnnotation<TNode>(this TNode node) where TNode : SyntaxNode
8886
{
8987
if (node == null)
@@ -97,7 +95,6 @@ public static TNode WithFormatterAnnotation<TNode>(this TNode node) where TNode
9795
/// </summary>
9896
/// <typeparam name="TNode"></typeparam>
9997
/// <param name="node"></param>
100-
/// <returns></returns>
10198
public static TNode WithSimplifierAnnotation<TNode>(this TNode node) where TNode : SyntaxNode
10299
{
103100
if (node == null)
@@ -138,7 +135,6 @@ internal static TNode WithFormatterAndSimplifierAnnotation<TNode>(this TNode nod
138135
/// Adds <see cref="Formatter.Annotation"/> to the specified token, creating a new token of the same type with the <see cref="Formatter.Annotation"/> on it.
139136
/// </summary>
140137
/// <param name="token"></param>
141-
/// <returns></returns>
142138
public static SyntaxToken WithFormatterAnnotation(this SyntaxToken token)
143139
{
144140
return token.WithAdditionalAnnotations(_formatterAnnotationArray);
@@ -149,7 +145,6 @@ public static SyntaxToken WithFormatterAnnotation(this SyntaxToken token)
149145
/// "Rename" annotation is specified by <see cref="RenameAnnotation.Kind"/>.
150146
/// </summary>
151147
/// <param name="token"></param>
152-
/// <returns></returns>
153148
public static SyntaxToken WithSimplifierAnnotation(this SyntaxToken token)
154149
{
155150
return token.WithAdditionalAnnotations(_simplifierAnnotationArray);
@@ -165,7 +160,6 @@ internal static SyntaxToken WithNavigationAnnotation(this SyntaxToken token)
165160
/// "Rename" annotation is specified by <see cref="RenameAnnotation.Kind"/>.
166161
/// </summary>
167162
/// <param name="token"></param>
168-
/// <returns></returns>
169163
public static SyntaxToken WithRenameAnnotation(this SyntaxToken token)
170164
{
171165
return token.WithAdditionalAnnotations(_renameAnnotationArray);

src/CSharp.Workspaces/CSharp/SyntaxInverter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public static class SyntaxInverter
2121
/// </summary>
2222
/// <param name="expression"></param>
2323
/// <param name="cancellationToken"></param>
24-
/// <returns></returns>
2524
public static ExpressionSyntax LogicallyInvert(
2625
ExpressionSyntax expression,
2726
CancellationToken cancellationToken = default(CancellationToken))
@@ -35,7 +34,6 @@ public static ExpressionSyntax LogicallyInvert(
3534
/// <param name="expression"></param>
3635
/// <param name="semanticModel"></param>
3736
/// <param name="cancellationToken"></param>
38-
/// <returns></returns>
3937
public static ExpressionSyntax LogicallyInvert(
4038
ExpressionSyntax expression,
4139
SemanticModel semanticModel,

src/CSharp/CSharp/CSharpFactory.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ private static PredefinedTypeSyntax PredefinedType(SyntaxKind syntaxKind)
210210
/// Creates a list of modifiers from the specified accessibility.
211211
/// </summary>
212212
/// <param name="accessibility"></param>
213-
/// <returns></returns>
214213
public static SyntaxTokenList TokenList(Accessibility accessibility)
215214
{
216215
switch (accessibility)

src/CSharp/CSharp/CSharpFacts.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ internal static string GetTitle(SyntaxNode node)
125125
/// Returns true if a syntax of the specified kind is comment trivia.
126126
/// </summary>
127127
/// <param name="kind"></param>
128-
/// <returns></returns>
129128
public static bool IsCommentTrivia(SyntaxKind kind)
130129
{
131130
return kind.Is(
@@ -139,7 +138,6 @@ public static bool IsCommentTrivia(SyntaxKind kind)
139138
/// Returns true if a syntax of the specified kind can have statements. It can be either <see cref="BlockSyntax"/> or <see cref="SwitchSectionSyntax"/>.
140139
/// </summary>
141140
/// <param name="kind"></param>
142-
/// <returns></returns>
143141
public static bool CanHaveStatements(SyntaxKind kind)
144142
{
145143
return kind.Is(SyntaxKind.Block, SyntaxKind.SwitchSection);
@@ -149,7 +147,6 @@ public static bool CanHaveStatements(SyntaxKind kind)
149147
/// Returns true if a syntax of the specified kind can have members.
150148
/// </summary>
151149
/// <param name="kind"></param>
152-
/// <returns></returns>
153150
public static bool CanHaveMembers(SyntaxKind kind)
154151
{
155152
return kind.Is(
@@ -164,7 +161,6 @@ public static bool CanHaveMembers(SyntaxKind kind)
164161
/// Returns true if a syntax of the specified kind if local function or anonymous function.
165162
/// </summary>
166163
/// <param name="kind"></param>
167-
/// <returns></returns>
168164
public static bool IsFunction(SyntaxKind kind)
169165
{
170166
return kind.Is(
@@ -178,7 +174,6 @@ public static bool IsFunction(SyntaxKind kind)
178174
/// Returns true if a syntax of the specified kind is a for, foreach, while or do statement.
179175
/// </summary>
180176
/// <param name="kind"></param>
181-
/// <returns></returns>
182177
public static bool IsIterationStatement(SyntaxKind kind)
183178
{
184179
return kind.Is(
@@ -193,7 +188,6 @@ public static bool IsIterationStatement(SyntaxKind kind)
193188
/// Returns true if a syntax of the specified kind is true or false literal expression.
194189
/// </summary>
195190
/// <param name="kind"></param>
196-
/// <returns></returns>
197191
public static bool IsBooleanLiteralExpression(SyntaxKind kind)
198192
{
199193
return kind.Is(
@@ -205,7 +199,6 @@ public static bool IsBooleanLiteralExpression(SyntaxKind kind)
205199
/// Returns true if a syntax of the specified kind is a lambda expression.
206200
/// </summary>
207201
/// <param name="kind"></param>
208-
/// <returns></returns>
209202
public static bool IsLambdaExpression(SyntaxKind kind)
210203
{
211204
return kind.Is(
@@ -217,7 +210,6 @@ public static bool IsLambdaExpression(SyntaxKind kind)
217210
/// Returns true if a syntax of the specified kind is an anonymous method or lambda expression.
218211
/// </summary>
219212
/// <param name="kind"></param>
220-
/// <returns></returns>
221213
public static bool IsAnonymousFunctionExpression(SyntaxKind kind)
222214
{
223215
return kind.Is(
@@ -230,7 +222,6 @@ public static bool IsAnonymousFunctionExpression(SyntaxKind kind)
230222
/// Returns true if a syntax of the specified kind is a jump statement.
231223
/// </summary>
232224
/// <param name="kind"></param>
233-
/// <returns></returns>
234225
public static bool IsJumpStatement(SyntaxKind kind)
235226
{
236227
switch (kind)
@@ -258,7 +249,6 @@ internal static bool IsJumpStatementOrYieldBreakStatement(SyntaxKind kind)
258249
/// Returns true if a syntax of the specified kind is pre/post increment/decrement expression.
259250
/// </summary>
260251
/// <param name="kind"></param>
261-
/// <returns></returns>
262252
public static bool IsIncrementOrDecrementExpression(SyntaxKind kind)
263253
{
264254
return kind.Is(
@@ -272,7 +262,6 @@ public static bool IsIncrementOrDecrementExpression(SyntaxKind kind)
272262
/// Returns true if a syntax of the specified kind is a compound assignment expression.
273263
/// </summary>
274264
/// <param name="kind"></param>
275-
/// <returns></returns>
276265
public static bool IsCompoundAssignmentExpression(SyntaxKind kind)
277266
{
278267
switch (kind)
@@ -297,7 +286,6 @@ public static bool IsCompoundAssignmentExpression(SyntaxKind kind)
297286
/// Returns true if a syntax of the specified kind can have modifiers.
298287
/// </summary>
299288
/// <param name="kind"></param>
300-
/// <returns></returns>
301289
public static bool CanHaveModifiers(SyntaxKind kind)
302290
{
303291
switch (kind)
@@ -349,7 +337,6 @@ internal static bool CanHaveUnsafeModifier(SyntaxKind kind)
349337
/// Returns true if a syntax of the specified kind can have expression body.
350338
/// </summary>
351339
/// <param name="kind"></param>
352-
/// <returns></returns>
353340
public static bool CanHaveExpressionBody(SyntaxKind kind)
354341
{
355342
switch (kind)
@@ -376,7 +363,6 @@ public static bool CanHaveExpressionBody(SyntaxKind kind)
376363
/// Returns true if a syntax of the specified kind can have an embedded statement.
377364
/// </summary>
378365
/// <param name="kind"></param>
379-
/// <returns></returns>
380366
public static bool CanHaveEmbeddedStatement(SyntaxKind kind)
381367
{
382368
switch (kind)
@@ -401,7 +387,6 @@ public static bool CanHaveEmbeddedStatement(SyntaxKind kind)
401387
/// Returns true if a syntax of the specified kind can be an embedded statement.
402388
/// </summary>
403389
/// <param name="kind"></param>
404-
/// <returns></returns>
405390
public static bool CanBeEmbeddedStatement(SyntaxKind kind)
406391
{
407392
switch (kind)
@@ -471,7 +456,6 @@ internal static bool IsSingleTokenExpression(SyntaxKind kind)
471456
/// Returns true if a syntax of the specified kind is a predefined type.
472457
/// </summary>
473458
/// <param name="specialType"></param>
474-
/// <returns></returns>
475459
public static bool IsPredefinedType(SpecialType specialType)
476460
{
477461
switch (specialType)
@@ -503,7 +487,6 @@ public static bool IsPredefinedType(SpecialType specialType)
503487
/// Returns true if a syntax of the specified kind is a simple type.
504488
/// </summary>
505489
/// <param name="specialType"></param>
506-
/// <returns></returns>
507490
public static bool IsSimpleType(SpecialType specialType)
508491
{
509492
switch (specialType)
@@ -531,7 +514,6 @@ public static bool IsSimpleType(SpecialType specialType)
531514
/// Returns true if an expression of the specified type can be used in a prefix or postfix unary operator.
532515
/// </summary>
533516
/// <param name="specialType"></param>
534-
/// <returns></returns>
535517
public static bool SupportsPrefixOrPostfixUnaryOperator(SpecialType specialType)
536518
{
537519
switch (specialType)
@@ -706,7 +688,6 @@ internal static bool ExistsImplicitNumericConversion(SpecialType from, SpecialTy
706688
/// Returns true if a syntax of the specified kind is a switch label.
707689
/// </summary>
708690
/// <param name="kind"></param>
709-
/// <returns></returns>
710691
public static bool IsSwitchLabel(SyntaxKind kind)
711692
{
712693
return kind.Is(
@@ -719,7 +700,6 @@ public static bool IsSwitchLabel(SyntaxKind kind)
719700
/// Returns true if a syntax of the specified kind is a boolean expression.
720701
/// </summary>
721702
/// <param name="kind"></param>
722-
/// <returns></returns>
723703
public static bool IsBooleanExpression(SyntaxKind kind)
724704
{
725705
switch (kind)
@@ -746,7 +726,6 @@ public static bool IsBooleanExpression(SyntaxKind kind)
746726
/// Returns true if a syntax of the specified kind is a constraint.
747727
/// </summary>
748728
/// <param name="kind"></param>
749-
/// <returns></returns>
750729
public static bool IsConstraint(SyntaxKind kind)
751730
{
752731
return kind.Is(
@@ -760,7 +739,6 @@ public static bool IsConstraint(SyntaxKind kind)
760739
/// Returns true if a syntax of the specified kind is a literal expression.
761740
/// </summary>
762741
/// <param name="kind"></param>
763-
/// <returns></returns>
764742
public static bool IsLiteralExpression(SyntaxKind kind)
765743
{
766744
switch (kind)
@@ -783,7 +761,6 @@ public static bool IsLiteralExpression(SyntaxKind kind)
783761
/// Returns true if a syntax of the specified kind is #if, #else, #elif or #endif directive.
784762
/// </summary>
785763
/// <param name="kind"></param>
786-
/// <returns></returns>
787764
public static bool IsIfElseDirective(SyntaxKind kind)
788765
{
789766
switch (kind)
@@ -802,7 +779,6 @@ public static bool IsIfElseDirective(SyntaxKind kind)
802779
/// Returns true if a syntax of the specified kind is a statement (which includes <see cref="SyntaxKind.Block"/>).
803780
/// </summary>
804781
/// <param name="kind"></param>
805-
/// <returns></returns>
806782
internal static bool IsStatement(SyntaxKind kind)
807783
{
808784
switch (kind)

src/CSharp/CSharp/ExpressionChain.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ private static bool IsInSpan(TextSpan self, TextSpan span)
7575
/// <summary>
7676
/// Returns a chain which contains all expressions of <see cref="ExpressionChain"/> in reversed order.
7777
/// </summary>
78-
/// <returns></returns>
7978
public Reversed Reverse()
8079
{
8180
return new Reversed(this);
@@ -91,7 +90,6 @@ internal ExpressionSyntax First()
9190
/// <summary>
9291
/// Gets the enumerator for the expressions.
9392
/// </summary>
94-
/// <returns></returns>
9593
public Enumerator GetEnumerator()
9694
{
9795
return new Enumerator(this);
@@ -116,7 +114,6 @@ IEnumerator IEnumerable.GetEnumerator()
116114
/// <summary>
117115
/// Returns the string representation of the expressions, not including its leading and trailing trivia.
118116
/// </summary>
119-
/// <returns></returns>
120117
public override string ToString()
121118
{
122119
return BinaryExpression?.ToString(ExpressionsSpan) ?? "";

0 commit comments

Comments
 (0)