Example #1
0
        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);
        }
Example #2
0
 private CompileIssue(IssueLocation location, IssueType type, IssueId id)
 {
     this._id = id;
     this._issueType = type;
     _desc = id.GetDescription();
     _msg = _desc;
     _location = location;
 }
Example #3
0
 private CompileIssue(IssueLocation location, IssueType type, IssueId id)
 {
     this._id        = id;
     this._issueType = type;
     _desc           = id.GetDescription();
     _msg            = _desc;
     _location       = location;
 }
Example #4
0
 private CompileIssue(IssueLocation location, IssueType type, IssueId id, params object[] args)
     : this(location, type, id)
 {
     _msg = _desc.TryFormat(args);
 }
Example #5
0
 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;
 }
Example #6
0
 private CompileIssue(IssueLocation location, IssueType type, IssueId id, params object[] args)
     : this(location, type, id)
 {
     _msg = _desc.TryFormat(args);
 }