//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Collections.Generic;
using Microsoft.SqlServer.Management.SqlParser.Intellisense;
using Microsoft.SqlServer.Management.SqlParser.Parser;
namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
{
///
/// Class for storing cached metadata regarding a parsed SQL file
///
public class ScriptParseInfo
{
private object buildingMetadataLock = new object();
///
/// Event which tells if MetadataProvider is built fully or not
///
public object BuildingMetadataLock
{
get { return this.buildingMetadataLock; }
}
///
/// Gets or sets a flag determining is the LanguageService is connected
///
public bool IsConnected { get; set; }
///
/// Gets or sets the binding queue connection context key
///
public string ConnectionKey { get; set; }
///
/// Gets or sets the previous SQL parse result
///
public ParseResult ParseResult { get; set; }
///
/// Gets or sets the current autocomplete suggestion list
///
public IEnumerable CurrentSuggestions { get; set; }
}
}