Skip to content

Commit 730a1a9

Browse files
committed
Remove usages of spans.
1 parent e1352fe commit 730a1a9

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

AspNetCoreAnalyzers/Helpers/StringLiteral.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace AspNetCoreAnalyzers
22
{
3-
using System;
43
using Microsoft.CodeAnalysis;
54
using Microsoft.CodeAnalysis.CSharp.Syntax;
65
using Microsoft.CodeAnalysis.Text;
@@ -14,10 +13,6 @@ public StringLiteral(LiteralExpressionSyntax literalExpression)
1413

1514
public LiteralExpressionSyntax LiteralExpression { get; }
1615

17-
public ReadOnlySpan<char> Text => this.LiteralExpression.Token.Text.AsSpan();
18-
19-
public ReadOnlySpan<char> ValueText => this.LiteralExpression.Token.ValueText.AsSpan();
20-
2116
public bool IsVerbatim
2217
{
2318
get
@@ -85,4 +80,4 @@ int GetIndex(int pos)
8580
}
8681
}
8782
}
88-
}
83+
}

AspNetCoreAnalyzers/Helpers/StringLiteralSpan.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ namespace AspNetCoreAnalyzers
22
{
33
using System;
44
using Microsoft.CodeAnalysis;
5-
using Microsoft.CodeAnalysis.CSharp.Syntax;
65
using Microsoft.CodeAnalysis.Text;
76

87
public struct StringLiteralSpan : IEquatable<StringLiteralSpan>

0 commit comments

Comments
 (0)