Files
UnrealEngineUWP/Engine/Source/Programs/BuildAgent/Run/ErrorMatch.cs
Ryan Durand 9ef3748747 Updating copyrights for Engine Programs.
#rnx
#rb none
#jira none

#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536
#ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866)

[CL 10870955 by Ryan Durand in Main branch]
2019-12-26 23:01:54 -05:00

63 lines
1.5 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BuildAgent.Run
{
enum ErrorSeverity
{
Error,
Warning,
Silent,
}
enum ErrorPriority
{
Lowest,
Low,
BelowNormal,
Normal,
AboveNormal,
High,
Highest,
}
class ErrorMatch
{
public ErrorSeverity Severity;
public ErrorPriority Priority;
public string Type;
public int MinLineNumber;
public int MaxLineNumber;
public List<string> Lines = new List<string>();
public Dictionary<string, string> Properties = new Dictionary<string, string>(StringComparer.Ordinal);
public ErrorMatch(ErrorSeverity Severity, ErrorPriority Priority, string Type, int MinLineNumber, int MaxLineNumber)
{
this.Severity = Severity;
this.Priority = Priority;
this.Type = Type;
this.MinLineNumber = MinLineNumber;
this.MaxLineNumber = MaxLineNumber;
}
public ErrorMatch(ErrorSeverity Severity, ErrorPriority Priority, string Type, ReadOnlyLineBuffer Input)
: this(Severity, Priority, Type, Input, 0, 0)
{
}
public ErrorMatch(ErrorSeverity Severity, ErrorPriority Priority, string Type, ReadOnlyLineBuffer Input, int MinOffset, int MaxOffset)
: this(Severity, Priority, Type, Input.CurrentLineNumber + MinOffset, Input.CurrentLineNumber + MaxOffset)
{
for (int Offset = MinOffset; Offset <= MaxOffset; Offset++)
{
Lines.Add(Input[Offset]);
}
}
}
}