// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using System; namespace Microsoft.SqlTools.ServiceLayer.BatchParser { [Serializable] public readonly struct PositionStruct { private readonly int line; private readonly int column; private readonly int offset; private readonly string filename; /// /// Constructor for the PositionStruct class /// public PositionStruct(int line, int column, int offset, string filename) { this.line = line; this.column = column; this.offset = offset; this.filename = filename; } /// /// Get line from the PositionStruct /// public int Line { get { return line; } } /// /// Get column from the PositionStruct /// public int Column { get { return column; } } /// /// Get offset from the PositionStruct /// public int Offset { get { return offset; } } /// /// Get file name from the PositionStruct /// public string Filename { get { return filename; } } } }