File tree 2 files changed +3
-3
lines changed
src/Dotnet.Script.Core/Internal
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
},
9
9
"script" : {
10
10
"enableScriptNuGetReferences" : true ,
11
- "defaultTargetFramework" : " net5 .0"
11
+ "defaultTargetFramework" : " net6 .0"
12
12
},
13
13
"FormattingOptions" : {
14
14
"organizeImports" : true ,
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ public override SyntaxNode VisitReferenceDirectiveTrivia(ReferenceDirectiveTrivi
25
25
private static SyntaxNode HandleSkippedTrivia ( SyntaxNode node )
26
26
{
27
27
var skippedTrivia = node . DescendantTrivia ( ) . Where ( x => x . RawKind == ( int ) SyntaxKind . SkippedTokensTrivia ) . FirstOrDefault ( ) ;
28
- if ( skippedTrivia . Token . Kind ( ) != SyntaxKind . None )
28
+ if ( ! skippedTrivia . Token . IsKind ( SyntaxKind . None ) )
29
29
{
30
30
var firstToken = skippedTrivia . GetStructure ( ) . ChildTokens ( ) . FirstOrDefault ( ) ;
31
- if ( firstToken . Kind ( ) == SyntaxKind . BadToken && firstToken . ToFullString ( ) . Trim ( ) == ";" )
31
+ if ( firstToken . IsKind ( SyntaxKind . BadToken ) && firstToken . ToFullString ( ) . Trim ( ) == ";" )
32
32
{
33
33
node = node . ReplaceToken ( firstToken , SyntaxFactory . Token ( SyntaxKind . None ) ) ;
34
34
skippedTrivia = node . DescendantTrivia ( ) . Where ( x => x . RawKind == ( int ) SyntaxKind . SkippedTokensTrivia ) . FirstOrDefault ( ) ;
You can’t perform that action at this time.
0 commit comments