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)); }
internal static CompilationError Error(Syntax.Token t, ErrorCode e, params object[] args) { return(new CompilationError(t.start, e, args)); }