aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/CompilationError.cs
blob: eda72fa6e2db46de10d1eff5175b17df62703e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Microsoft.CodeAnalysis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Scripting.Basic
{
    public class CompilationError
    {
        public String File { get; set; }
        public String Message { get; set; }
        public DiagnosticSeverity Severity { get; set; }
        public int Position { get; set; }
        public int Line { get; set; }
        public int Column { get; set; }
        public int Length { get; set; }
    }
}
ass="w"> RaisePropertyChangedAuto(); } } public bool IsEntryPoint { get; set; } private String _code; public String Code { get { return _code; } set { if (_code != null && _code != value) { IsChanged = true; } _code = value; RaisePropertyChangedAuto(); } } private bool _isChanged; [JsonIgnore] public bool IsChanged { get { return _isChanged; } set { _isChanged = value; RaisePropertyChangedAuto(); } } private bool _isSelected; [JsonIgnore] public bool IsSelected { get { return _isSelected; } set { _isSelected = value; RaisePropertyChangedAuto(); } } [JsonIgnore] public int LoadCount { get; internal set; } [JsonIgnore] public int LoadCharCount { get; set; } public static Script New(String file) { return new Script() { Name = Path.GetFileName(file), Code = System.IO.File.ReadAllText(file), }; } public static Script New(String name, String code, bool isEntryPoint = false) { return new Script() { Name = name, Code = code, IsEntryPoint = isEntryPoint, }; } } }