//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{
///
/// Class for reference of variables used by the lexer
///
internal sealed class VariableReference
{
///
/// Constructor method for VariableReference class
///
public VariableReference(int start, int length, string variableName)
{
Start = start;
Length = length;
VariableName = variableName;
VariableValue = null;
}
///
/// Get length associated with the VariableReference
///
public int Length { get; private set; }
///
/// Get start position associated with the VariableReference
///
public int Start { get; private set; }
///
/// Get variable name associated with the VariableReference
///
public string VariableName { get; private set; }
///
/// Get variable value associated with the VariableReference
///
public string VariableValue { get; internal set; }
}
}