File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Legacy Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
1
// Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
- using System ;
5
4
using System . Collections . Immutable ;
6
5
7
6
namespace Microsoft . AspNetCore . Razor . Language . Legacy ;
@@ -10,20 +9,14 @@ internal static class RazorSyntaxTreeExtensions
10
9
{
11
10
public static ImmutableArray < ClassifiedSpanInternal > GetClassifiedSpans ( this RazorSyntaxTree syntaxTree )
12
11
{
13
- if ( syntaxTree == null )
14
- {
15
- throw new ArgumentNullException ( nameof ( syntaxTree ) ) ;
16
- }
12
+ ArgHelper . ThrowIfNull ( syntaxTree ) ;
17
13
18
14
return ClassifiedSpanVisitor . VisitRoot ( syntaxTree ) ;
19
15
}
20
16
21
17
public static ImmutableArray < TagHelperSpanInternal > GetTagHelperSpans ( this RazorSyntaxTree syntaxTree )
22
18
{
23
- if ( syntaxTree == null )
24
- {
25
- throw new ArgumentNullException ( nameof ( syntaxTree ) ) ;
26
- }
19
+ ArgHelper . ThrowIfNull ( syntaxTree ) ;
27
20
28
21
return TagHelperSpanVisitor . VisitRoot ( syntaxTree ) ;
29
22
}
You can’t perform that action at this time.
0 commit comments