using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sunweaver.Parsing { public class CompilationMessage { public Token token; public string message; public override bool Equals(object obj) { if (obj is CompilationMessage) { return Equals(obj as CompilationMessage); } else { return false; } } public bool Equals(CompilationMessage other) { return token.Equals(other.token); } public override int GetHashCode() { return token.GetHashCode(); } public override string ToString() { return token.line + "(" + token.column + "): " + message; } } }