コード例 #1
0
ファイル: FileRead.cs プロジェクト: zhifu10001/YAGP
        private void DoError(UnkRec.ErrorCode msg, int lineNum)
        {
            var err = new UnkRec();

            err.Error = msg;
            err.Beg   = lineNum;
            err.End   = lineNum;
            Errors.Add(err);
        }
コード例 #2
0
ファイル: GedRecParse.cs プロジェクト: zhifu10001/YAGP
        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);
        }