blob: 3feab7c6f540606d05199711b9367154b7f2f33f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) 2013-2025 Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
using System;
using System.Collections.Generic;
namespace Crow
{
public struct FileLocation {
public string FilePath;
public int Line;
public int Column;
public int Length;
public FileLocation(string filePath, int line, int column, int length = 0){
FilePath = filePath;
Line = line;
Column = column;
Length = length;
}
public override string ToString ()
{
return string.Format ("{0} ({1},{2})", FilePath, Line, Column);
}
}
}
|