// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem.Collections.Immutable;
usingSystem.Composition;
usingSystem.Threading;
...
...
@@ -7,6 +9,7 @@
usingMicrosoft.CodeAnalysis.CSharp.Extensions;
usingMicrosoft.CodeAnalysis.LanguageServices;
usingMicrosoft.CodeAnalysis.QuickInfo;
usingSystem.Diagnostics.CodeAnalysis;
namespaceMicrosoft.CodeAnalysis.CSharp.QuickInfo
{
...
...
@@ -22,7 +25,7 @@ public CSharpSemanticQuickInfoProvider()
/// If the token is the '=>' in a lambda, or the 'delegate' in an anonymous function,
/// return the syntax for the lambda or anonymous function.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem.Collections.Generic;
usingSystem.Collections.Immutable;
usingSystem.Composition;
...
...
@@ -10,6 +12,7 @@
usingMicrosoft.CodeAnalysis.CSharp.Syntax;
usingMicrosoft.CodeAnalysis.QuickInfo;
usingMicrosoft.CodeAnalysis.Text;
usingRoslyn.Utilities;
namespaceMicrosoft.CodeAnalysis.CSharp.QuickInfo
{
...
...
@@ -22,7 +25,7 @@ public CSharpSyntacticQuickInfoProvider()
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Collections.Immutable;
...
...
@@ -32,14 +34,12 @@ internal static class IndentationHelper
// We need to figure out the shortest indentation level of the exposed lines. We'll
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem.Threading.Tasks;
namespaceMicrosoft.CodeAnalysis.QuickInfo
...
...
@@ -14,6 +16,6 @@ internal abstract class QuickInfoProvider
/// Gets the <see cref="QuickInfoItem"/> for the position.
/// </summary>
/// <returns>The <see cref="QuickInfoItem"/> or null if no item is available.</returns>
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem.Collections.Immutable;
usingSystem.Linq;
usingSystem.Threading;
...
...
@@ -21,7 +23,7 @@ public sealed class QuickInfoSection
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem.Threading;
usingSystem.Threading.Tasks;
usingMicrosoft.CodeAnalysis.Host;
...
...
@@ -16,13 +18,13 @@ public abstract class QuickInfoService : ILanguageService
/// <summary>
/// Gets the appropriate <see cref="QuickInfoService"/> for the specified document.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
@@ -135,8 +143,9 @@ public static bool IsKind(this SyntaxNode node, SyntaxKind kind1, SyntaxKind kin
returntoken.LeadingTrivia;
}
Contract.ThrowIfTrue(sourceText==null&&includePreviousTokenTrailingTriviaOnlyIfOnSameLine,"If we are including previous token trailing trivia, we need the text too.");
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.