示例#1
0
 internal static CompilationError Error(Syntax.Token t, ErrorCode e, params object[] args)
 {
     if (t.Source?.SourceText != null)
     {
         return(new CompilationError(new SourceLocation(t.Source?.SourceText, t.Start)
         {
             FileName = t.Source.SourceName
         }, e, args));
     }
     return(new CompilationError(t.Start, e, args));
 }
示例#2
0
 internal static CompilationError Error(Syntax.Token t, ErrorCode e, params object[] args)
 {
     return(new CompilationError(t.start, e, args));
 }