|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Snippets.SnippetProviders;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis.Snippets
{
internal interface ISnippetService : ILanguageService
{
/// <summary>
/// Retrieves all possible types of snippets for a particular position
/// </summary>
Task<ImmutableArray<SnippetData>> GetSnippetsAsync(Document document, int position, CancellationToken cancellationToken);
/// <summary>
/// Gets the corresponding provider from a snippet identifier.
/// Called upon by the AbstractSnippetCompletionProvider
/// </summary>
ISnippetProvider GetSnippetProvider(string snippetIdentifier);
}
}
|