Esempio n. 1
0
 protected AssemblyFinding(Severity severity, int lineNumber, LineSection section, int startCharIndex, int length)
 {
     LineSection    = section;
     StartCharIndex = startCharIndex;
     Length         = length;
     Severity       = severity;
     LineNumber     = lineNumber;
 }
Esempio n. 2
0
 public AssemblyWarning(int lineNumber, LineSection lineSection, int causeStartIndex, int causeLength, ValidationError error)
     : base(Severity.Warning, lineNumber, lineSection, causeStartIndex, causeLength, error)
 {
 }
Esempio n. 3
0
 public void ReportWarning(LineSection lineSection, int causeStartIndex, int causeLength, ValidationError error) =>
 Findings.Add(new AssemblyWarning(LineNumber, lineSection, causeStartIndex, causeLength, error));
Esempio n. 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)));
Esempio n. 5
0
 public void ReportParsingError(LineSection lineSection, int causeStartIndex, int causeLength, string message) =>
 Findings.Add(new AssemblyError(LineNumber, lineSection, causeStartIndex, causeLength, new ParsingError(message)));
Esempio n. 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;
 }
Esempio n. 7
0
 public ValidationFinding(Severity severity, int lineNumber, LineSection lineSection, int causeStartIndex, int causeLength, ValidationError error)
     : base(severity, lineNumber, lineSection, causeStartIndex, causeLength)
 {
     Error = error;
 }