コード例 #1
0
 internal void AddWarning(int code, string msg, LexSpan spn)
 {
     if (spn == null)
     {
         spn = DefaultSpan;
     }
     this.AddError(new Error(code, msg, spn, true)); wrnNum++;
 }
コード例 #2
0
 internal void AddError(int code, string msg, LexSpan spn)
 {
     if (spn == null)
     {
         spn = DefaultSpan;
     }
     this.AddError(new Error(code, msg, spn, false)); errNum++;
 }