// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Runtime.CompilerServices;
usingMicrosoft.CodeAnalysis;
usingMicrosoft.CodeAnalysis.Collections;
usingRoslyn.Utilities;
usingSystem.Diagnostics;
...
...
@@ -347,7 +345,8 @@ public override Microsoft.CodeAnalysis.SyntaxToken CreateSeparator<TNode>(Syntax
publicoverrideboolIsTriviaWithEndOfLine()
{
returnthis.Kind==SyntaxKind.EndOfLineTrivia
||this.Kind==SyntaxKind.SingleLineCommentTrivia;
||this.Kind==SyntaxKind.SingleLineCommentTrivia
||this.Kind==SyntaxKind.ShebangTrivia;
}
// Use conditional weak table so we always return same identity for structured trivia
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.Collections.Generic;
usingMicrosoft.CodeAnalysis.Text;
namespaceMicrosoft.CodeAnalysis.Shared.Utilities
{
...
...
@@ -9,25 +8,30 @@ internal partial class Matcher<T>
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingMicrosoft.CodeAnalysis.Text;
namespaceMicrosoft.CodeAnalysis.Shared.Utilities
{
...
...
@@ -24,11 +23,11 @@ public static Matcher<T> OneOrMore<T>(Matcher<T> matcher)