示例#1
0
 protected AssemblyFinding(Severity severity, int lineNumber, LineSection section, int startCharIndex, int length)
 {
     LineSection    = section;
     StartCharIndex = startCharIndex;
     Length         = length;
     Severity       = severity;
     LineNumber     = lineNumber;
 }
示例#2
0
 public AssemblyWarning(int lineNumber, LineSection lineSection, int causeStartIndex, int causeLength, ValidationError error)
     : base(Severity.Warning, lineNumber, lineSection, causeStartIndex, causeLength, error)
 {
 }
示例#3
0
 public void ReportWarning(LineSection lineSection, int causeStartIndex, int causeLength, ValidationError error) =>
 Findings.Add(new AssemblyWarning(LineNumber, lineSection, causeStartIndex, causeLength, error));
示例#4
0
 public void ReportParsingWarning(LineSection lineSection, int causeStartIndex, int causeLength, string message, int lowerBound, int upperBound) =>
 Findings.Add(new AssemblyWarning(LineNumber, lineSection, causeStartIndex, causeLength, new ParsingError(message, lowerBound, upperBound)));
示例#5
0
 public void ReportParsingError(LineSection lineSection, int causeStartIndex, int causeLength, string message) =>
 Findings.Add(new AssemblyError(LineNumber, lineSection, causeStartIndex, causeLength, new ParsingError(message)));
示例#6
0
 public AssemblyInfo(string message, int lineNumber, LineSection lineSection, int startCharIndex, int length)
     : base(MixLib.Misc.Severity.Info, lineNumber, lineSection, startCharIndex, length)
 {
     mMessage = message;
 }
示例#7
0
 public ValidationFinding(Severity severity, int lineNumber, LineSection lineSection, int causeStartIndex, int causeLength, ValidationError error)
     : base(severity, lineNumber, lineSection, causeStartIndex, causeLength)
 {
     Error = error;
 }