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