private void DoError(UnkRec.ErrorCode msg, int lineNum) { var err = new UnkRec(); err.Error = msg; err.Beg = lineNum; err.End = lineNum; Errors.Add(err); }
protected static string parseForXref(ParseContext2 context, UnkRec.ErrorCode errVal = UnkRec.ErrorCode.MissIdent) { string xref; string extra; StructParser.parseXrefExtra(context.Remain, out xref, out extra); if (string.IsNullOrEmpty(xref)) { UnkRec err = new UnkRec(); err.Error = errVal; err.Beg = err.End = context.Begline + context.Parent.BegLine; err.Tag = context.Tag; context.Parent.Errors.Add(err); } return(xref); }