public static CompileIssue Create(SyntaxTree tree, SyntaxToken token, IssueType type, IssueId id, params object[] args) { IssueLocation loc = new IssueLocation(tree, token); CompileIssue issue = new CompileIssue(loc, type, id, args); return(issue); }
private CompileIssue(IssueLocation location, IssueType type, IssueId id) { this._id = id; this._issueType = type; _desc = id.GetDescription(); _msg = _desc; _location = location; }
private CompileIssue(IssueLocation location, IssueType type, IssueId id, params object[] args) : this(location, type, id) { _msg = _desc.TryFormat(args); }
public static CompileIssue Create(SyntaxTree tree, SyntaxToken token, IssueType type, IssueId id, params object[] args) { IssueLocation loc = new IssueLocation(tree, token); CompileIssue issue = new CompileIssue(loc, type, id, args); return issue; }