public CompileMessage(CompileMessageSrcKey key, int line, int col, string text) { Key = key; Line = line; Col = col; Content = text; }
public bool ContainsErrorSrcKey(string fileName) { foreach (var item in this.Errors) { if (item.Key is CompileMessageSrcKey) { CompileMessageSrcKey srcKey = (item.Key as CompileMessageSrcKey); if (srcKey.SrcFileName == fileName) { return(true); } } } return(false); }