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