"I have changed access modifier from Internal to Public . These classes are being refered outside. (#742)

This commit is contained in:
NiranjanVirtuosity
2018-11-26 12:53:12 -08:00
committed by Karl Burtram
parent 6dd9a4b5f1
commit a54eff11b6
23 changed files with 32 additions and 32 deletions

View File

@@ -5,7 +5,7 @@
namespace Microsoft.SqlTools.ServiceLayer.BatchParser namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{ {
internal enum BatchParserAction public enum BatchParserAction
{ {
Continue = 0, Continue = 0,
Abort = 1 Abort = 1

View File

@@ -17,7 +17,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// <summary> /// <summary>
/// Single batch of SQL command /// Single batch of SQL command
/// </summary> /// </summary>
internal class Batch public class Batch
{ {
#region Private methods #region Private methods

View File

@@ -11,7 +11,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// <summary> /// <summary>
/// Error totalAffectedRows for a Batch /// Error totalAffectedRows for a Batch
/// </summary> /// </summary>
internal class BatchErrorEventArgs : EventArgs public class BatchErrorEventArgs : EventArgs
{ {
#region Private Fields #region Private Fields
private string message = string.Empty; private string message = string.Empty;

View File

@@ -11,25 +11,25 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// <summary> /// <summary>
/// Event args for notification about non-error message /// Event args for notification about non-error message
/// </summary> /// </summary>
internal class BatchMessageEventArgs : EventArgs public class BatchMessageEventArgs : EventArgs
{ {
private readonly string message = string.Empty; private readonly string message = string.Empty;
private readonly string detailedMessage = string.Empty; private readonly string detailedMessage = string.Empty;
private readonly SqlError error; private readonly SqlError error;
private BatchMessageEventArgs() public BatchMessageEventArgs()
{ {
} }
internal BatchMessageEventArgs(string msg) public BatchMessageEventArgs(string msg)
: this(string.Empty, msg) : this(string.Empty, msg)
{ {
} }
internal BatchMessageEventArgs(string detailedMsg, string msg) : this(detailedMsg, msg, null) public BatchMessageEventArgs(string detailedMsg, string msg) : this(detailedMsg, msg, null)
{ {
} }
internal BatchMessageEventArgs(string detailedMsg, string msg, SqlError error) public BatchMessageEventArgs(string detailedMsg, string msg, SqlError error)
{ {
message = msg; message = msg;
detailedMessage = detailedMsg; detailedMessage = detailedMsg;

View File

@@ -10,7 +10,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// <summary> /// <summary>
/// Class that parses queries into batches /// Class that parses queries into batches
/// </summary> /// </summary>
internal class BatchParser : public class BatchParser :
ICommandHandler, ICommandHandler,
IVariableResolver IVariableResolver
{ {

View File

@@ -8,7 +8,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// <summary> /// <summary>
/// Class associated with batch parser execution errors /// Class associated with batch parser execution errors
/// </summary> /// </summary>
internal class BatchParserExecutionErrorEventArgs : BatchErrorEventArgs public class BatchParserExecutionErrorEventArgs : BatchErrorEventArgs
{ {
private readonly ScriptMessageType messageType; private readonly ScriptMessageType messageType;

View File

@@ -10,13 +10,13 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// <summary> /// <summary>
/// Class associated with batch parser execution finished event /// Class associated with batch parser execution finished event
/// </summary> /// </summary>
internal class BatchParserExecutionFinishedEventArgs : EventArgs public class BatchParserExecutionFinishedEventArgs : EventArgs
{ {
private readonly Batch batch = null; private readonly Batch batch = null;
private readonly ScriptExecutionResult result; private readonly ScriptExecutionResult result;
private BatchParserExecutionFinishedEventArgs() public BatchParserExecutionFinishedEventArgs()
{ {
} }

View File

@@ -11,7 +11,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// <summary> /// <summary>
/// Class associated with batch parser execution start event /// Class associated with batch parser execution start event
/// </summary> /// </summary>
internal class BatchParserExecutionStartEventArgs : EventArgs public class BatchParserExecutionStartEventArgs : EventArgs
{ {
private readonly Batch batch = null; private readonly Batch batch = null;

View File

@@ -14,7 +14,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// <summary> /// <summary>
/// Class for handling SQL CMD by Batch Parser /// Class for handling SQL CMD by Batch Parser
/// </summary> /// </summary>
internal class BatchParserSqlCmd : BatchParser public class BatchParserSqlCmd : BatchParser
{ {
/// <summary> /// <summary>
/// The internal variables that can be used in SqlCommand substitution. /// The internal variables that can be used in SqlCommand substitution.

View File

@@ -11,7 +11,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// <summary> /// <summary>
/// Class associated with setting batch results /// Class associated with setting batch results
/// </summary> /// </summary>
internal class BatchResultSetEventArgs : EventArgs public class BatchResultSetEventArgs : EventArgs
{ {
private readonly IDataReader dataReader = null; private readonly IDataReader dataReader = null;
@@ -21,7 +21,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
/// Default constructor /// Default constructor
/// </summary> /// </summary>
/// <param name="dataReader"></param> /// <param name="dataReader"></param>
internal BatchResultSetEventArgs(IDataReader dataReader, ShowPlanType expectedShowPlan) public BatchResultSetEventArgs(IDataReader dataReader, ShowPlanType expectedShowPlan)
{ {
this.dataReader = dataReader; this.dataReader = dataReader;
this.expectedShowPlan = expectedShowPlan; this.expectedShowPlan = expectedShowPlan;

View File

@@ -8,7 +8,7 @@ using System;
namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
{ {
[Flags] [Flags]
internal enum ScriptExecutionResult public enum ScriptExecutionResult
{ {
Success = 0x1, Success = 0x1,
Failure = 0x2, Failure = 0x2,

View File

@@ -5,7 +5,7 @@
namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
{ {
internal enum ScriptMessageType public enum ScriptMessageType
{ {
FatalError, FatalError,
Error, Error,

View File

@@ -6,7 +6,7 @@
namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
{ {
[System.Flags] [System.Flags]
internal enum ShowPlanType public enum ShowPlanType
{ {
None = 0x0, None = 0x0,
ActualExecutionShowPlan = 0x1, ActualExecutionShowPlan = 0x1,

View File

@@ -5,7 +5,7 @@
namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
{ {
internal struct TextSpan public struct TextSpan
{ {
public int iEndIndex; public int iEndIndex;
public int iEndLine; public int iEndLine;

View File

@@ -7,7 +7,7 @@ using System.IO;
namespace Microsoft.SqlTools.ServiceLayer.BatchParser namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{ {
internal interface ICommandHandler public interface ICommandHandler
{ {
BatchParserAction Go(TextBlock batch, int repeatCount); BatchParserAction Go(TextBlock batch, int repeatCount);
BatchParserAction OnError(Token token, OnErrorAction action); BatchParserAction OnError(Token token, OnErrorAction action);

View File

@@ -5,7 +5,7 @@
namespace Microsoft.SqlTools.ServiceLayer.BatchParser namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{ {
internal interface IVariableResolver public interface IVariableResolver
{ {
string GetVariable(PositionStruct pos, string name); string GetVariable(PositionStruct pos, string name);
void SetVariable(PositionStruct pos, string name, string value); void SetVariable(PositionStruct pos, string name, string value);

View File

@@ -11,7 +11,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser
/// This class gives information about lines being parsed by /// This class gives information about lines being parsed by
/// the Batch Parser /// the Batch Parser
/// </summary> /// </summary>
class LineInfo public class LineInfo
{ {
private IEnumerable<Token> tokens; private IEnumerable<Token> tokens;
private IEnumerable<VariableReference> variableRefs; private IEnumerable<VariableReference> variableRefs;

View File

@@ -5,7 +5,7 @@
namespace Microsoft.SqlTools.ServiceLayer.BatchParser namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{ {
internal enum OnErrorAction public enum OnErrorAction
{ {
Ignore = 0, Ignore = 0,
Exit = 1, Exit = 1,

View File

@@ -16,7 +16,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser
/// <summary> /// <summary>
/// The Parser class on which the Batch Parser is based on /// The Parser class on which the Batch Parser is based on
/// </summary> /// </summary>
internal sealed class Parser : IDisposable public sealed class Parser : IDisposable
{ {
private readonly ICommandHandler commandHandler; private readonly ICommandHandler commandHandler;
private Lexer lexer; private Lexer lexer;

View File

@@ -8,7 +8,7 @@ using System;
namespace Microsoft.SqlTools.ServiceLayer.BatchParser namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{ {
[Serializable] [Serializable]
internal struct PositionStruct public struct PositionStruct
{ {
private readonly int line; private readonly int line;
private readonly int column; private readonly int column;

View File

@@ -8,7 +8,7 @@ using System.Collections.Generic;
namespace Microsoft.SqlTools.ServiceLayer.BatchParser namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{ {
internal class TextBlock public class TextBlock
{ {
private readonly Parser parser; private readonly Parser parser;
private readonly IEnumerable<Token> tokens; private readonly IEnumerable<Token> tokens;

View File

@@ -5,12 +5,12 @@
namespace Microsoft.SqlTools.ServiceLayer.BatchParser namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{ {
internal sealed class Token public sealed class Token
{ {
/// <summary> /// <summary>
/// Token class used by the lexer in Batch Parser /// Token class used by the lexer in Batch Parser
/// </summary> /// </summary>
internal Token(LexerTokenType tokenType, PositionStruct begin, PositionStruct end, string text, string filename) public Token(LexerTokenType tokenType, PositionStruct begin, PositionStruct end, string text, string filename)
{ {
TokenType = tokenType; TokenType = tokenType;
Begin = begin; Begin = begin;

View File

@@ -8,7 +8,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser
/// <summary> /// <summary>
/// Class for reference of variables used by the lexer /// Class for reference of variables used by the lexer
/// </summary> /// </summary>
internal sealed class VariableReference public sealed class VariableReference
{ {
/// <summary> /// <summary>
/// Constructor method for VariableReference class /// Constructor method for VariableReference class