aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting/CompilationError.cs
blob: 03c96a413cb40ec4ea56cbd481310487632f57c3 (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
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Scripting
{
    public class CompilationError
    {
        public String File { get; set; }

        public String Name
        {
            get { return Path.GetFileName(File); }
        }

        public String Message { get; set; }
        public int Line { get; set; }
        public int Character { get; set; }

        public override string ToString()
        {
            return String.Format("{0}  {1} ({2},{3})", Message, Name, Line, Character);
        }
    }
}