Exemplo n.º 1
0
 public DiagnosticResult(IDiagnosticResult result)
 {
     Code     = result.Code;
     Message  = result.Message;
     Project  = result.Project;
     Location = result.Location;
 }
Exemplo n.º 2
0
 public DiagnosticResult(IDiagnosticResult result)
 {
     this.Code     = result.Code;
     this.Message  = result.Message;
     this.Project  = result.Project;
     this.Location = result.Location;
 }
Exemplo n.º 3
0
        public static string GetSourcePath(this IDiagnosticLocation self)
        {
            if (self == null)
            {
                throw new ArgumentNullException(nameof(self));
            }

            return(self.SourcePath ?? self.Source?.FullName);
        }
Exemplo n.º 4
0
 public DiagnosticLocation(IDiagnosticLocation location)
 {
     SourceLine = location.SourceLine;
     Source     = location.Source;
     SourcePath = location.SourcePath;
 }